Skip to content

Commit

Permalink
测试到大小写后缀名匹配为不同
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Feb 8, 2017
1 parent 9d156eb commit aac8903
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions EncodingNormalizer.UnitTest/IncludeFileSettingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,36 @@ public void GetaIncludeRegexFile()

foreach (var temp in file)
{
Assert.AreEqual(includeRegex.Any(regex => regex.IsMatch(temp)),true);
Assert.AreEqual(includeRegex.Any(regex => regex.IsMatch(temp)), true);
}

file=new List<string>()
file = new List<string>()
{
"lindexi.txt1"
};
foreach (var temp in file)
{
Assert.AreEqual(includeRegex.Any(regex => regex.IsMatch(temp)), false);
}

TestCase(includeRegex);
}

private static void TestCase(List<Regex> includeRegex)
{
List<string> file = new List<string>()
{
"lindexi.Txt"
};
foreach (var temp in file)
{
Assert.AreEqual(includeRegex.Any(regex => regex.IsMatch(temp)), true);
}
}

private void TestCase()
{

}

private void WriteFile()
Expand Down

0 comments on commit aac8903

Please sign in to comment.