public void TestExactMappingInLiteralAtTheStartSurrounded() { string testStr = "\"\\tX\t\""; int remappedLocation = SerilogAnalyzerAnalyzer.GetPositionInLiteral(testStr, GetXPosition(testStr)); Assert.AreEqual(testStr.IndexOf('X'), remappedLocation); }
public void TestExactMappingInLiteralWithTab() { string testStr = "\"text \\t text X text\""; int remappedLocation = SerilogAnalyzerAnalyzer.GetPositionInLiteral(testStr, GetXPosition(testStr)); Assert.AreEqual(testStr.IndexOf('X'), remappedLocation); }