Adds a test for ToHttpsUrl extension.

pull/3801/head
Victor Usoltsev 4 years ago
parent 4332e5cf51
commit 0c34fbd0cd

@ -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");
}
}
}
Loading…
Cancel
Save