예제 #1
0
        public void TestExactMappingInLiteralAtTheStartSurrounded()
        {
            string testStr          = "\"\\tX\t\"";
            int    remappedLocation = SerilogAnalyzerAnalyzer.GetPositionInLiteral(testStr, GetXPosition(testStr));

            Assert.AreEqual(testStr.IndexOf('X'), remappedLocation);
        }
예제 #2
0
        public void TestExactMappingInLiteralWithTab()
        {
            string testStr          = "\"text \\t text X text\"";
            int    remappedLocation = SerilogAnalyzerAnalyzer.GetPositionInLiteral(testStr, GetXPosition(testStr));

            Assert.AreEqual(testStr.IndexOf('X'), remappedLocation);
        }