public void Test_1s() { Assert.True(Yatzy.Ones(1, 2, 3, 4, 5) == 1); Assert.Equal(2, Yatzy.Ones(1, 2, 1, 4, 5)); Assert.Equal(0, Yatzy.Ones(6, 2, 2, 4, 5)); Assert.Equal(4, Yatzy.Ones(1, 2, 1, 1, 1)); }
public void Fact_1s(int expected, int d1, int d2, int d3, int d4, int d5) { Assert.Equal(expected, Yatzy.Ones(d1, d2, d3, d4, d5)); }