Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Created April 12, 2024 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardsz/0059db6c704be68962cfd4bbb5480d9f to your computer and use it in GitHub Desktop.
Save jrichardsz/0059db6c704be68962cfd4bbb5480d9f to your computer and use it in GitHub Desktop.
c# unit tests
using NUnit.Framework;
using System;
[TestFixture]
public class Tests
{
[Test]
public static void Test1()
{
Assert.AreEqual("emocleW", Kata.SpinWords("Welcome"));
}
[Test]
public static void Test2()
{
Assert.AreEqual("Hey wollef sroirraw", Kata.SpinWords("Hey fellow warriors"));
}
[Test]
public static void Test3()
{
Assert.AreEqual("This is a test", Kata.SpinWords("This is a test"));
}
[Test]
public static void Test4()
{
Assert.AreEqual("This is rehtona test", Kata.SpinWords("This is another test"));
}
[Test]
public static void Test5()
{
Assert.AreEqual("You are tsomla to the last test", Kata.SpinWords("You are almost to the last test"));
}
[Test]
public static void Test6()
{
Assert.AreEqual("Just gniddik ereht is llits one more", Kata.SpinWords("Just kidding there is still one more"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment