Ejemplo n.º 1
0
        public static void EnglishDotNet()
        {
            Assert.True(
                string.Equals(
                    "  at Member in File.cs:line 5",
                    FileLine.EnglishDotNet(
                        "File.cs",
                        "Member",
                        5),
                    StringComparison.OrdinalIgnoreCase));

            Assert.True(
                string.Equals(
                    "  at Member in File.cs:line 5",
                    FileLine.EnglishDotNet(
                        @"c:\dir1\dir2\File.cs",
                        "Member",
                        5),
                    StringComparison.OrdinalIgnoreCase));

            Assert.True(
                string.Equals(
                    "  at Member in File.cs:line 5",
                    FileLine.EnglishDotNet(
                        @"/mnt/sdcard/File.cs",
                        "Member",
                        5),
                    StringComparison.OrdinalIgnoreCase));
        }