public void ToString_Amount10ColorRed_10AndRedInString() { //Arrange EvenOddBet uut = new EvenOddBet("Otto Leisner", 10, true); //amount = 10, bet on even //Act var returnValue = uut.ToString(); //Assert Assert.AreEqual("10$ even/odd bet on even", returnValue); }
public void WonAmount_BetOnEvenIsIncorrect_ResultEqualsZero() { //Arrange EvenOddBet uut = new EvenOddBet("Otto Leisner", 10, true); //amount = 10, even = true Field testField = new Field(3, 1); // Number = 2, Color = 1 //Act var returnValue = uut.WonAmount(testField); //Assert Assert.AreEqual(0, returnValue); }
public void WonAmount_BetOnOddIsCorrectAndAmountEquals10_ResultEquals20() { //Arrange EvenOddBet uut = new EvenOddBet("Otto Leisner", 10, false); //amount = 10, even = false Field testField = new Field(3, 0); // Number = 3, Color = 0 //Act var returnValue = uut.WonAmount(testField); //Assert Assert.AreEqual(20, returnValue); }