Skip to content

Commit

Permalink
chore: add project for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed May 31, 2024
1 parent 33c6adf commit e8630a8
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/csharp/PeerDASKZG.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeerDASKZG", "PeerDASKZG.bindings\PeerDASKZG.csproj", "{A1534E2C-AB77-4075-865B-45E0ECEAA409}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeerDASKZG.test", "PeerDASKZG.test\PeerDASKZG.test.csproj", "{15486123-F250-4BEF-96B8-94C07E0F5B14}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -18,5 +20,9 @@ Global
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Release|Any CPU.Build.0 = Release|Any CPU
{15486123-F250-4BEF-96B8-94C07E0F5B14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15486123-F250-4BEF-96B8-94C07E0F5B14}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15486123-F250-4BEF-96B8-94C07E0F5B14}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15486123-F250-4BEF-96B8-94C07E0F5B14}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
28 changes: 28 additions & 0 deletions bindings/csharp/PeerDASKZG.test/PeerDASKZG.test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit.Analyzers" Version="3.9.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
</ItemGroup>

<ItemGroup>
<Using Include="NUnit.Framework" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\PeerDASKZG.bindings\PeerDASKZG.csproj" />
</ItemGroup>

</Project>
15 changes: 15 additions & 0 deletions bindings/csharp/PeerDASKZG.test/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace PeerDASKZG.test;

public class Tests
{
[SetUp]
public void Setup()
{
}

[Test]
public void Test1()
{
Assert.AreEqual(true, true);

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, Assert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

The actual value should not be a constant - perhaps the actual value and the expected value have switched places (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2007.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, Assert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

The actual value should not be a constant - perhaps the actual value and the expected value have switched places (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2007.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (macos-latest)

Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, Assert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (macos-latest)

The actual value should not be a constant - perhaps the actual value and the expected value have switched places (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2007.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (macos-latest)

Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, Assert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (macos-latest)

The actual value should not be a constant - perhaps the actual value and the expected value have switched places (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2007.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, Assert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

The actual value should not be a constant - perhaps the actual value and the expected value have switched places (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2007.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, Assert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)

Check warning on line 13 in bindings/csharp/PeerDASKZG.test/UnitTest1.cs

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

The actual value should not be a constant - perhaps the actual value and the expected value have switched places (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2007.md)
}
}

0 comments on commit e8630a8

Please sign in to comment.