Alphashack.Graphdat.Agent.SqlQueryHelperTests.Parser.RewriteShouldReplaceQuotedStrings C# (CSharp) Method

RewriteShouldReplaceQuotedStrings() private method

private RewriteShouldReplaceQuotedStrings ( ) : void
return void
        public void RewriteShouldReplaceQuotedStrings()
        {
            // Arrange
            var subject = new SqlQueryHelper.Parser();

            // Act
            var result = subject.Rewrite(@"one blah ""blah"" blah");
            var result1 = subject.Rewrite(@"two blah 'blah' blah");
            var result2 = subject.Rewrite(@"three blah ""bl\""ah"" blah");
            var result3 = subject.Rewrite(@"four blah 'bl\'ah' blah");

            // Assert
            Assert.AreEqual(@"one blah ? blah", result);
            Assert.AreEqual(@"two blah ? blah", result1);
            Assert.AreEqual(@"three blah ? blah", result2);
            Assert.AreEqual(@"four blah ? blah", result3);
        }