예제 #1
0
 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()));
 }
예제 #2
0
 public void EmptyTests()
 {
     Assert.AreEqual("", Kata.Encrypt("", 0));
     Assert.AreEqual("", Kata.Decrypt("", 0));
 }
예제 #3
0
 public void ShouldRemoveAllVowels()
 {
     Assert.AreEqual("Ths wbst s fr lsrs LL!", Kata.Disemvowel("This website is for losers LOL!"));
 }
예제 #4
0
 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"));
 }
예제 #5
0
 public void GetNumberOfYears0()
 {
     Assert.AreEqual(0, Kata.CalculateYears(1000, 0.05, 0.18, 1000));
 }
예제 #6
0
 public void GetNumberOfYears1()
 {
     Assert.AreEqual(14, Kata.CalculateYears(1000, 0.01625, 0.18, 1200));
 }