public void WonAmount_FieldNumberDoesNotEqualBetNumber_ResultEqualsZero() { //Arrange NumberBet uut = new NumberBet("Otto Leisner", 10, 25); //amount = 10, field number = 25 Field testField = new Field(5, 0); // Number = 5, Color = 0 //Act var returnValue = uut.WonAmount(testField); //Assert Assert.AreEqual(0, returnValue); }
public void WonAmount_FieldNumberEqualsBetNumberAndAmountEquals10_ResultEquals360() { //Arrange NumberBet uut = new NumberBet("Otto Leisner", 10, 25); //amount = 10, field number = 25 Field testField = new Field(25, 0); // Number = 25, Color = 0 //Act var returnValue = uut.WonAmount(testField); //Assert Assert.AreEqual(360, returnValue); }