You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/12/05 12:38:26 UTC

[22/52] ignite git commit: .NET: Remove unused code, sort example tests

.NET: Remove unused code, sort example tests


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3f797b67
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3f797b67
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3f797b67

Branch: refs/heads/master
Commit: 3f797b67384f6237a51d358727bc406c5610d0cf
Parents: b04460c
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Fri Nov 25 12:36:46 2016 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Fri Nov 25 12:36:46 2016 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs        | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/3f797b67/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs
index 663711c..4df012c 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs
@@ -37,9 +37,6 @@ namespace Apache.Ignite.Core.Tests.Examples
         /** Config url */
         public string ConfigPath { get; private set; }
 
-        /** Source path */
-        public string SourceFilePath { get; private set; }
-
         /** Dll load flag */
         public bool NeedsTestDll { get; private set; }
 
@@ -75,7 +72,7 @@ namespace Apache.Ignite.Core.Tests.Examples
 
             Assert.IsTrue(sourceFiles.Any());
 
-            var types = examplesAsm.GetTypes().Where(x => x.GetMethod("Main") != null).ToArray();
+            var types = examplesAsm.GetTypes().Where(x => x.GetMethod("Main") != null).OrderBy(x => x.Name).ToArray();
 
             Assert.IsTrue(types.Any());
 
@@ -89,7 +86,6 @@ namespace Apache.Ignite.Core.Tests.Examples
 
                 yield return new Example
                 {
-                    SourceFilePath = sourceFile,
                     ConfigPath = GetConfigPath(sourceCode),
                     NeedsTestDll = sourceCode.Contains(examplesDllName),
                     _runAction = GetRunAction(type),