mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 12:37:13 +00:00
feat: Adding enquote util method
This commit is contained in:
parent
1a931e6ffb
commit
f7b5d07c38
2 changed files with 27 additions and 0 deletions
|
|
@ -170,5 +170,13 @@ namespace ICD.Common.Utils.Tests
|
|||
Assert.IsTrue(StringUtils.TryParse("true", out testVal));
|
||||
Assert.AreEqual(true, testVal);
|
||||
}
|
||||
|
||||
[TestCase("test", "\"test\"")]
|
||||
[TestCase("\"test\"", "\"test\"")]
|
||||
[TestCase("test test", "\"test test\"")]
|
||||
public void EnquoteTest(string input, string expected)
|
||||
{
|
||||
Assert.AreEqual(expected, StringUtils.Enquote(input));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue