Example #1
0
 public void BasicTests()
 {
     Assert.AreEqual(string.Join(", ", new long[] { 1, 2, 3 }), string.Join(", ", Kata.SplitOddAndEven(123)));
     Assert.AreEqual(string.Join(", ", new long[] { 22, 3 }), string.Join(", ", Kata.SplitOddAndEven(223)));
     Assert.AreEqual(string.Join(", ", new long[] { 111 }), string.Join(", ", Kata.SplitOddAndEven(111)));
     Assert.AreEqual(string.Join(", ", new long[] { 13579 }), string.Join(", ", Kata.SplitOddAndEven(13579)));
     Assert.AreEqual(string.Join(", ", new long[] { 135, 246 }), string.Join(", ", Kata.SplitOddAndEven(135246)));
     Assert.AreEqual(string.Join(", ", new long[] { 1, 2, 3, 4, 5, 6 }), string.Join(", ", Kata.SplitOddAndEven(123456)));
 }