From bb5872b61f32d29120923acbbc7ff42764e2f3a0 Mon Sep 17 00:00:00 2001 From: Kaz Yoshihara Date: Fri, 1 Nov 2024 10:01:08 -0700 Subject: [PATCH] Add C# 12 (#507) --- content/languages/csharp/index.md | 5 +++-- content/languages/csharp/nunit.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/content/languages/csharp/index.md b/content/languages/csharp/index.md index b9843da4..5021b7d0 100644 --- a/content/languages/csharp/index.md +++ b/content/languages/csharp/index.md @@ -8,11 +8,12 @@ tags: [csharp] ## Versions -- 10.0 (.Net 6.0) +- 10.0 (.NET 6.0) +- 12.0 (.NET 8.0) ## Test Frameworks -[NUnit](http://www.nunit.org/) +[NUnit](https://nunit.org/) ## Timeout 12 seconds diff --git a/content/languages/csharp/nunit.md b/content/languages/csharp/nunit.md index 1ded9ca8..89e62812 100644 --- a/content/languages/csharp/nunit.md +++ b/content/languages/csharp/nunit.md @@ -32,7 +32,7 @@ public class AddTest [Test, Description("should add two numbers")] public void ShouldAddTwoNumbers() { - Assert.AreEqual(3, Challenge.Add(1, 2)); + Assert.That(3, Is.EqualTo(Challenge.Add(1, 2))); } } ```