mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 12:37:13 +00:00
add test for isnullorwhitespace
This commit is contained in:
parent
f5904ada4c
commit
ba76de88ae
1 changed files with 13 additions and 0 deletions
|
|
@ -78,5 +78,18 @@ namespace ICD.Common.Utils.Tests
|
|||
{
|
||||
Assert.AreEqual(0x67, StringUtils.FromIpIdString("0x67"));
|
||||
}
|
||||
|
||||
[UsedImplicitly]
|
||||
[TestCase(null, true)]
|
||||
[TestCase("", true)]
|
||||
[TestCase("\n", true)]
|
||||
[TestCase("\r", true)]
|
||||
[TestCase("Test", false)]
|
||||
[TestCase("Test\n", false)]
|
||||
[TestCase("\nTest", false)]
|
||||
public void IsNullOrWhitespaceTest(string value, bool expectedResult)
|
||||
{
|
||||
Assert.AreEqual(StringUtils.IsNullOrWhitespace(value), expectedResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue