feat: Adding enquote util method

This commit is contained in:
Chris Cameron
2018-06-12 13:31:44 -04:00
parent 1a931e6ffb
commit f7b5d07c38
2 changed files with 27 additions and 0 deletions

View File

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