Repository: ignite Updated Branches: refs/heads/ignite-1286 472366cea -> 9faa9927b
IGNITE-1286 test project Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/b772a022 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/b772a022 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/b772a022 Branch: refs/heads/ignite-1286 Commit: b772a022d1a4bb8c03802b7426ef1bb9b6051448 Parents: 472366c Author: ptupitsyn <[email protected]> Authored: Mon Aug 24 15:11:31 2015 +0300 Committer: ptupitsyn <[email protected]> Committed: Mon Aug 24 15:11:31 2015 +0300 ---------------------------------------------------------------------- .../platform/src/main/dotnet/Apache.Ignite.sln | 8 ++ .../Apache.Ignite.Core.Tests.csproj | 86 +++++++++++++++++++ .../Apache.Ignite.Core.Tests/GridFactoryTest.cs | 13 +++ .../Properties/AssemblyInfo.cs | 36 ++++++++ .../Apache.Ignite.Core.Tests/TestRunner.cs | 53 ++++++++++++ .../test/dotnet/NUnit/nunit-console-runner.dll | Bin 0 -> 36864 bytes .../test/dotnet/NUnit/nunit-console-runner.pdb | Bin 0 -> 48640 bytes .../src/test/dotnet/NUnit/nunit.core.dll | Bin 0 -> 155648 bytes .../test/dotnet/NUnit/nunit.core.interfaces.dll | Bin 0 -> 61440 bytes .../test/dotnet/NUnit/nunit.core.interfaces.pdb | Bin 0 -> 200192 bytes .../src/test/dotnet/NUnit/nunit.core.pdb | Bin 0 -> 523776 bytes .../src/test/dotnet/NUnit/nunit.framework.dll | Bin 0 -> 151552 bytes .../src/test/dotnet/NUnit/nunit.framework.pdb | Bin 0 -> 894464 bytes .../src/test/dotnet/NUnit/nunit.mocks.dll | Bin 0 -> 24576 bytes .../src/test/dotnet/NUnit/nunit.mocks.pdb | Bin 0 -> 38400 bytes .../src/test/dotnet/NUnit/nunit.util.dll | Bin 0 -> 135168 bytes .../src/test/dotnet/NUnit/nunit.util.pdb | Bin 0 -> 372224 bytes 17 files changed, 196 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/main/dotnet/Apache.Ignite.sln ---------------------------------------------------------------------- diff --git a/modules/platform/src/main/dotnet/Apache.Ignite.sln b/modules/platform/src/main/dotnet/Apache.Ignite.sln index df442d3..dc6eb08 100644 --- a/modules/platform/src/main/dotnet/Apache.Ignite.sln +++ b/modules/platform/src/main/dotnet/Apache.Ignite.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 12.0.31101.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apache.Ignite.Core", "Apache.Ignite.Core\Apache.Ignite.Core.csproj", "{4CD2F726-7E2B-46C4-A5BA-057BB82EECB6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apache.Ignite.Core.Tests", "..\..\test\dotnet\Apache.Ignite.Core.Tests\Apache.Ignite.Core.Tests.csproj", "{6A62F66C-DA5B-4FBB-8CE7-A95F740FDC7A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 @@ -21,6 +23,12 @@ Global {4CD2F726-7E2B-46C4-A5BA-057BB82EECB6}.Release|x64.Build.0 = Release|x64 {4CD2F726-7E2B-46C4-A5BA-057BB82EECB6}.Release|x86.ActiveCfg = Release|x86 {4CD2F726-7E2B-46C4-A5BA-057BB82EECB6}.Release|x86.Build.0 = Release|x86 + {6A62F66C-DA5B-4FBB-8CE7-A95F740FDC7A}.Debug|x64.ActiveCfg = Debug|x64 + {6A62F66C-DA5B-4FBB-8CE7-A95F740FDC7A}.Debug|x64.Build.0 = Debug|x64 + {6A62F66C-DA5B-4FBB-8CE7-A95F740FDC7A}.Debug|x86.ActiveCfg = Debug|x86 + {6A62F66C-DA5B-4FBB-8CE7-A95F740FDC7A}.Debug|x86.Build.0 = Debug|x86 + {6A62F66C-DA5B-4FBB-8CE7-A95F740FDC7A}.Release|x64.ActiveCfg = Release|Any CPU + {6A62F66C-DA5B-4FBB-8CE7-A95F740FDC7A}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/Apache.Ignite.Core.Tests.csproj ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/Apache.Ignite.Core.Tests.csproj b/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/Apache.Ignite.Core.Tests.csproj new file mode 100644 index 0000000..08efac5 --- /dev/null +++ b/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/Apache.Ignite.Core.Tests.csproj @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProjectGuid>{6A62F66C-DA5B-4FBB-8CE7-A95F740FDC7A}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Apache.Ignite.Core.Tests</RootNamespace> + <AssemblyName>Apache.Ignite.Core.Tests</AssemblyName> + <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup> + <StartupObject /> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> + <PlatformTarget>x64</PlatformTarget> + <OutputPath>bin\x64\Debug\</OutputPath> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> + <PlatformTarget>x64</PlatformTarget> + <OutputPath>bin\x64\Release\</OutputPath> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> + <PlatformTarget>x86</PlatformTarget> + <OutputPath>bin\x86\Debug\</OutputPath> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> + <PlatformTarget>x86</PlatformTarget> + <OutputPath>bin\x86\Release\</OutputPath> + </PropertyGroup> + <ItemGroup> + <Reference Include="nunit-console-runner"> + <HintPath>..\NUnit\nunit-console-runner.dll</HintPath> + </Reference> + <Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\NUnit\nunit.framework.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="GridFactoryTest.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="TestRunner.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\..\main\dotnet\Apache.Ignite.Core\Apache.Ignite.Core.csproj"> + <Project>{4CD2F726-7E2B-46C4-A5BA-057BB82EECB6}</Project> + <Name>Apache.Ignite.Core</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/GridFactoryTest.cs ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/GridFactoryTest.cs b/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/GridFactoryTest.cs new file mode 100644 index 0000000..ab935fd --- /dev/null +++ b/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/GridFactoryTest.cs @@ -0,0 +1,13 @@ +namespace Apache.Ignite.Core.Tests +{ + using NUnit.Framework; + + public class GridFactoryTest + { + [Test] + public void Test() + { + Assert.IsNotNull(new GridFactory()); + } + } +} http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/Properties/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/Properties/AssemblyInfo.cs b/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..dc579c9 --- /dev/null +++ b/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Apache.Ignite.Core.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Apache.Ignite.Core.Tests")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("de8dd5cc-7c7f-4a09-80d5-7086d9416a7b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/TestRunner.cs ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/TestRunner.cs b/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/TestRunner.cs new file mode 100644 index 0000000..15bb4da --- /dev/null +++ b/modules/platform/src/test/dotnet/Apache.Ignite.Core.Tests/TestRunner.cs @@ -0,0 +1,53 @@ +namespace Apache.Ignite.Core.Tests +{ + using System; + using System.Diagnostics; + using System.Reflection; + + public static class TestRunner + { + [STAThread] + static void Main() + { + Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); + Debug.AutoFlush = true; + + //TestOne(typeof(ContinuousQueryAtomiclBackupTest), "TestInitialQuery"); + + TestAll(typeof(GridFactoryTest)); + + //TestAllInAssembly(); + } + + private static void TestOne(Type testClass, string method) + { + string[] args = { "/run:" + testClass.FullName + "." + method, Assembly.GetAssembly(testClass).Location }; + + int returnCode = NUnit.ConsoleRunner.Runner.Main(args); + + if (returnCode != 0) + Console.Beep(); + } + + private static void TestAll(Type testClass) + { + string[] args = { "/run:" + testClass.FullName, Assembly.GetAssembly(testClass).Location }; + + int returnCode = NUnit.ConsoleRunner.Runner.Main(args); + + if (returnCode != 0) + Console.Beep(); + } + + private static void TestAllInAssembly() + { + string[] args = { Assembly.GetAssembly(typeof(GridFactoryTest)).Location }; + + int returnCode = NUnit.ConsoleRunner.Runner.Main(args); + + if (returnCode != 0) + Console.Beep(); + } + + } +} http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit-console-runner.dll ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit-console-runner.dll b/modules/platform/src/test/dotnet/NUnit/nunit-console-runner.dll new file mode 100644 index 0000000..8c22e52 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit-console-runner.dll differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit-console-runner.pdb ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit-console-runner.pdb b/modules/platform/src/test/dotnet/NUnit/nunit-console-runner.pdb new file mode 100644 index 0000000..83aaacf Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit-console-runner.pdb differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.core.dll ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.core.dll b/modules/platform/src/test/dotnet/NUnit/nunit.core.dll new file mode 100644 index 0000000..ea2b021 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.core.dll differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.core.interfaces.dll ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.core.interfaces.dll b/modules/platform/src/test/dotnet/NUnit/nunit.core.interfaces.dll new file mode 100644 index 0000000..dcdb335 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.core.interfaces.dll differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.core.interfaces.pdb ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.core.interfaces.pdb b/modules/platform/src/test/dotnet/NUnit/nunit.core.interfaces.pdb new file mode 100644 index 0000000..32f3d84 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.core.interfaces.pdb differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.core.pdb ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.core.pdb b/modules/platform/src/test/dotnet/NUnit/nunit.core.pdb new file mode 100644 index 0000000..0e3478b Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.core.pdb differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.framework.dll ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.framework.dll b/modules/platform/src/test/dotnet/NUnit/nunit.framework.dll new file mode 100644 index 0000000..e0a3054 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.framework.dll differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.framework.pdb ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.framework.pdb b/modules/platform/src/test/dotnet/NUnit/nunit.framework.pdb new file mode 100644 index 0000000..f8f5074 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.framework.pdb differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.mocks.dll ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.mocks.dll b/modules/platform/src/test/dotnet/NUnit/nunit.mocks.dll new file mode 100644 index 0000000..a24441d Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.mocks.dll differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.mocks.pdb ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.mocks.pdb b/modules/platform/src/test/dotnet/NUnit/nunit.mocks.pdb new file mode 100644 index 0000000..fb9e9e7 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.mocks.pdb differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.util.dll ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.util.dll b/modules/platform/src/test/dotnet/NUnit/nunit.util.dll new file mode 100644 index 0000000..91ca980 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.util.dll differ http://git-wip-us.apache.org/repos/asf/ignite/blob/b772a022/modules/platform/src/test/dotnet/NUnit/nunit.util.pdb ---------------------------------------------------------------------- diff --git a/modules/platform/src/test/dotnet/NUnit/nunit.util.pdb b/modules/platform/src/test/dotnet/NUnit/nunit.util.pdb new file mode 100644 index 0000000..2e0ffc5 Binary files /dev/null and b/modules/platform/src/test/dotnet/NUnit/nunit.util.pdb differ
