public void SecondTest() { string a = "abcde"; Assert.AreEqual(5, Kata.GetLength(a)); }
public void ThirdTest() { object a = new { Length = 5, Width = 2 }; Assert.AreEqual(5, Kata.GetLength(a)); }
public void SampleTest() { Assert.AreEqual("Fail!", Kata.Well(new string[] { "bad", "bad", "bad" })); Assert.AreEqual("Publish!", Kata.Well(new string[] { "good", "bad", "bad", "bad", "bad" })); Assert.AreEqual("I smell a series!", Kata.Well(new string[] { "good", "bad", "bad", "bad", "bad", "good", "bad", "bad", "good" })); }
public void FirstTest() { int[] a = new int[] { 1, 2, 3, 4, 5 }; Assert.AreEqual(5, Kata.GetLength(a)); }
public void Over50() { Assert.AreEqual(60, Kata.AddStrings("20, 20, 20")); }
public bool SampleTest(int n) => Kata.IsPrime(n);
public void Example() { Assert.AreEqual("sihT si na !elpmaxe", Kata.ReverseWords("This is an example!")); }
public void BasicTests() { Assert.AreEqual(6, Kata.Grow(new [] { 1, 2, 3 })); Assert.AreEqual(16, Kata.Grow(new [] { 4, 1, 1, 1, 4 })); Assert.AreEqual(64, Kata.Grow(new [] { 2, 2, 2, 2, 2, 2 })); }
public void BasicTest() { Assert.AreEqual(true, Kata.OnlyOne(true, false)); }
public string Test(string s) = > Kata.High(s);
public void Test() { Assert.AreEqual("Venus", Kata.GetPlanetName(2)); Assert.AreEqual("Jupiter", Kata.GetPlanetName(5)); }
public void SampleTest() { Assert.AreEqual("It's hotter than the sun!!", Kata.Apple("50")); Assert.AreEqual("Help yourself to a honeycomb Yorkie for the glovebox.", Kata.Apple(4)); }
public int SampleTest(string str) { return(Kata.GetLongestPalindrome(str)); }
public void NoGoals() { Assert.AreEqual(Kata.GetGoals(0, 0, 0), 0); }
public void LessThan10() { Assert.AreEqual(5, Kata.AddStrings("2, 3")); }
public void FiftyEightGoals() { Assert.AreEqual(Kata.GetGoals(43, 10, 5), 58); }
public void BasicTests() { Assert.AreEqual("a", Kata.FirstNonRepeatingLetter("a")); Assert.AreEqual("t", Kata.FirstNonRepeatingLetter("stress")); Assert.AreEqual("e", Kata.FirstNonRepeatingLetter("moonmen")); }