diff --git a/src/Ombi.Helpers.Tests/StringHelperTests.cs b/src/Ombi.Helpers.Tests/StringHelperTests.cs index d03f926ff..80ca32c64 100644 --- a/src/Ombi.Helpers.Tests/StringHelperTests.cs +++ b/src/Ombi.Helpers.Tests/StringHelperTests.cs @@ -40,5 +40,14 @@ namespace Ombi.Helpers.Tests Assert.AreEqual(expectedUrl, sourceUrl.ToHttpsUrl(), "Should return the unchanged invalid URL"); } + + [Test] + public void ToHttpsUrl_ShouldReturnNull_NullUrl() + { + const string sourceUrl = null; + const string expectedUrl = null; + + Assert.AreEqual(expectedUrl, sourceUrl.ToHttpsUrl(), "Should return null for null URL"); + } } } \ No newline at end of file