public void SampleTest(Dictionary <string, int> expected, List <string> input) { var actual = Kata.Count(input); Assert.Equal(expected, actual); }
public void SampleTest() { Assert.Equal("1 -> 2 -> 3 -> null", Kata.Stringify(new Node(1, new Node(2, new Node(3))))); Assert.Equal("0 -> 1 -> 4 -> 9 -> 16 -> null", Kata.Stringify(new Node(0, new Node(1, new Node(4, new Node(9, new Node(16))))))); Assert.Equal("null", Kata.Stringify(null)); }
public void TestSampleData(long input, long?expected) { long?actual = Kata.RangeSum(input); Assert.Equal(expected, actual); }
public void NonDigitTest() { Assert.Equal(false, Kata.ValidatePin("a234")); Assert.Equal(false, Kata.ValidatePin(".234")); }