mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 11:38:32 -07:00
Adds a test for ToHttpsUrl extension.
This commit is contained in:
parent
4332e5cf51
commit
0c34fbd0cd
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue