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 a1b99a7 commit 7163296
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions EncodingNormalizer.UnitTest/IncludeFileSettingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ public void GetaIncludeRegexFile()
{
Assert.AreEqual(includeRegex.Any(regex => regex.IsMatch(temp)),true);
}

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

private void WriteFile()
Expand Down

0 comments on commit 7163296

Please sign in to comment.