public void EscapedQuotesAtEndTest() { string source = @"Foo eq '\'Bar\''"; var target = new StringExtractor(source); Assert.AreEqual("Foo eq ?0", target.ModifedString); Assert.AreEqual(@"'Bar'", target.GetValue("?0")); }
public void SingleStringTest() { string source = @"Foo eq 'Bar'"; var target = new StringExtractor(source); Assert.AreEqual("Foo eq ?0", target.ModifedString); Assert.AreEqual("Bar", target.GetValue("?0")); }