From 54eee2548eb69b0173b9634bcf38a51518cf1053 Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 17 Mar 2023 11:19:11 +0100 Subject: [PATCH] Setting up test framework --- ExampleFixtureTests.cs | 22 ++++++++++++++++++++++ Program.cs | 5 ++--- cs-kubetry.csproj | 6 ++++-- 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 ExampleFixtureTests.cs diff --git a/ExampleFixtureTests.cs b/ExampleFixtureTests.cs new file mode 100644 index 0000000..6d6aa02 --- /dev/null +++ b/ExampleFixtureTests.cs @@ -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(); + } +} diff --git a/Program.cs b/Program.cs index a8e52fb..cc7390d 100644 --- a/Program.cs +++ b/Program.cs @@ -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 diff --git a/cs-kubetry.csproj b/cs-kubetry.csproj index d6707ed..ee4e349 100644 --- a/cs-kubetry.csproj +++ b/cs-kubetry.csproj @@ -1,15 +1,17 @@ - Exe net6.0 - cs_kubetry + CodexDistTests enable enable + + +