You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2017/06/13 12:27:46 UTC
[2/7] ignite git commit: .NET: Fix TestAsciiChars
.NET: Fix TestAsciiChars
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4df69370
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4df69370
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4df69370
Branch: refs/heads/ignite-5272
Commit: 4df693704eddfeea2899ec7bf6db21304116f648
Parents: d4f19e7
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Tue Jun 13 12:50:51 2017 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Tue Jun 13 12:50:51 2017 +0300
----------------------------------------------------------------------
.../dotnet/Apache.Ignite.Core.Tests/ProjectFilesTest.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/4df69370/modules/platforms/dotnet/Apache.Ignite.Core.Tests/ProjectFilesTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/ProjectFilesTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/ProjectFilesTest.cs
index 806e1de..0c0d0f9 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/ProjectFilesTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/ProjectFilesTest.cs
@@ -123,8 +123,11 @@ namespace Apache.Ignite.Core.Tests
[Test]
public void TestAsciiChars()
{
- var srcFiles = GetDotNetSourceDir().GetFiles("*.cs", SearchOption.AllDirectories)
- .Where(x => x.Name != "BinaryStringTest.cs" && x.Name != "BinarySelfTest.cs");
+ var allowedFiles = new[] {"BinaryStringTest.cs", "BinarySelfTest.cs", "CacheDmlQueriesTest.cs"};
+
+ var srcFiles = GetDotNetSourceDir()
+ .GetFiles("*.cs", SearchOption.AllDirectories)
+ .Where(x => !allowedFiles.Contains(x.Name));
CheckFiles(srcFiles, x => x.Any(ch => ch > 255), "Files with non-ASCII chars: ");
}