Setting up test framework

This commit is contained in:
benbierens 2023-03-17 11:19:11 +01:00
parent c2fbba0336
commit 54eee2548e
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
3 changed files with 28 additions and 5 deletions

22
ExampleFixtureTests.cs Normal file
View File

@ -0,0 +1,22 @@
using NUnit.Framework;
[TestFixture]
public class ExampleFixtureTests
{
[SetUp]
public void SetUp()
{
}
[Test]
public void TestFail()
{
Assert.Fail();
}
[Test]
public void TestPass()
{
Assert.Pass();
}
}

View File

@ -1,11 +1,11 @@
using k8s;
using k8s.Models;
public static class Program
public static class NotProgram
{
private const string ns = "codex-test-namespace";
public static void Main(string[] args)
public static void NotMain(string[] args)
{
Console.WriteLine("Hello, World!");
@ -62,7 +62,6 @@ public static class Program
}
}
}
};
var serviceSpec = new V1Service

View File

@ -1,15 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>cs_kubetry</RootNamespace>
<RootNamespace>CodexDistTests</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="KubernetesClient" Version="10.1.4" />
<PackageReference Include="nunit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
</ItemGroup>
</Project>