Setting up test framework
This commit is contained in:
parent
c2fbba0336
commit
54eee2548e
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue