static void Main() { CodeWars.Kata kata = new CodeWars.Kata(); Console.WriteLine(string.Join(",", kata.wave("hello").ToArray())); Console.WriteLine(string.Join(",", kata.wave("two words").ToArray())); }
public void EmptyTests() { Assert.AreEqual("", Kata.Encrypt("", 0)); Assert.AreEqual("", Kata.Decrypt("", 0)); }
public void ShouldRemoveAllVowels() { Assert.AreEqual("Ths wbst s fr lsrs LL!", Kata.Disemvowel("This website is for losers LOL!")); }
public void KataTests() { Assert.Equal("igPay atinlay siay oolcay", Kata.PigIt("Pig latin is cool")); Assert.Equal("hisTay siay ymay tringsay", Kata.PigIt("This is my string")); }
public void GetNumberOfYears0() { Assert.AreEqual(0, Kata.CalculateYears(1000, 0.05, 0.18, 1000)); }
public void GetNumberOfYears1() { Assert.AreEqual(14, Kata.CalculateYears(1000, 0.01625, 0.18, 1200)); }