public void SibalaGameTest_6623_MaxValue3() { var actual = new SibalaGame(new List <int> { 6, 6, 2, 3 }).MaxDice; Assert.AreEqual(3, actual); }
public int GetResult(SibalaGame x, SibalaGame y) { if (x.Point == y.Point) { return(x.MaxDice - y.MaxDice); } else { return(x.Point - y.Point); } }
public void NormalPoint_1133_Should_Smaller_than_NormalPoint_1124() { _inputResult1 = new SibalaGame(new List <int> { 1, 1, 3, 3 }); _inputResult2 = new SibalaGame(new List <int> { 1, 1, 2, 4 }); AssertInputIsSmaller(); }
public void SamePoint_4_Should_Bigger_than_SamePoint_6() { _inputResult1 = new SibalaGame(new List <int> { 4, 4, 4, 4 }); _inputResult2 = new SibalaGame(new List <int> { 6, 6, 6, 6 }); AssertInput1IsBigger(); }
public void NormalPoint_10_Should_Bigger_than_NormalPoint_6() { _inputResult1 = new SibalaGame(new List <int> { 3, 3, 5, 5 }); _inputResult2 = new SibalaGame(new List <int> { 1, 1, 3, 3 }); AssertInput1IsBigger(); }
public void SamePoint_Should_Bigger_than_NoPoint() { _inputResult1 = new SibalaGame(new List <int> { 1, 1, 1, 1 }); _inputResult2 = new SibalaGame(new List <int> { 1, 5, 2, 3 }); AssertInput1IsBigger(); }
public void NormalPoint_1123_Should_Equal_NormalPoint_1123() { _inputResult1 = new SibalaGame(new List <int> { 1, 1, 2, 3 }); _inputResult2 = new SibalaGame(new List <int> { 1, 1, 2, 3 }); AssertInputIsEqual(); }
public void SamePoint_1111_Should_Equal_SamePoint_1111() { _inputResult1 = new SibalaGame(new List <int> { 1, 1, 1, 1 }); _inputResult2 = new SibalaGame(new List <int> { 1, 1, 1, 1 }); AssertInputIsEqual(); }
public void NoPoint_1234_Should_Equal_NoPoint_2345() { _inputResult1 = new SibalaGame(new List <int> { 1, 2, 3, 4 }); _inputResult2 = new SibalaGame(new List <int> { 2, 3, 4, 5 }); AssertInputIsEqual(); }
private static void Test(List <int> input, string output) { var actual = new SibalaGame(input).Output; Assert.AreEqual(output, actual); }
public NoPointResultHandler(SibalaGame sibalaGame) { _sibalaGame = sibalaGame; }
public int GetResult(SibalaGame sibalaGame, SibalaGame sibalaGame1) { return(0); }