Adds a test for ToHttpsUrl extension.

This commit is contained in:
Victor Usoltsev 2020-10-08 12:13:42 +13:00
parent 4332e5cf51
commit 0c34fbd0cd

View file

@ -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");
}
}
}