From 3fbd92cb22696c139afe18380ab0869493dc35a5 Mon Sep 17 00:00:00 2001 From: Terje Sandstrom Date: Tue, 10 Oct 2023 23:38:00 +0200 Subject: [PATCH] Added theory to compare. The nodes are then children of a Theory Test-Suite. --- Issue4491/OtherTests.cs | 25 +++++++++++++++++++++++++ Issue4491/UnitTest1.cs | 1 + 2 files changed, 26 insertions(+) create mode 100644 Issue4491/OtherTests.cs diff --git a/Issue4491/OtherTests.cs b/Issue4491/OtherTests.cs new file mode 100644 index 0000000..f036155 --- /dev/null +++ b/Issue4491/OtherTests.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Issue4491; + +internal class OtherTests +{ + internal enum TestType + { + Test, + Theory, + Whatever + } + + + [Theory] + public void TestTheory(TestType t) + { + TestContext.WriteLine(TestContext.CurrentContext.Test.ID); + Assert.Pass(); + } +} \ No newline at end of file diff --git a/Issue4491/UnitTest1.cs b/Issue4491/UnitTest1.cs index e5817c9..ce285b6 100644 --- a/Issue4491/UnitTest1.cs +++ b/Issue4491/UnitTest1.cs @@ -25,4 +25,5 @@ public void Test3() bool x = true; Assert.That(x, Is.True); } + } \ No newline at end of file