Ejemplo n.º 1
0
        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 NeitherBet_ToString_NeitherBetContainsCorrectValues()
 {
     Assert.That(_uutNeither.ToString().ToLower(), Does.Match("100.*neither"));
 }
 public void OddBet_ToString_EvenBetContainsCorrectValues()
 {
     Assert.That(_uutOdd.ToString().ToLower(), Does.Match("100.*odd"));
 }
 public void EvenBet_ToString_EvenBetContainsCorrectValues()
 {
     Assert.That(_uutEven.ToString().ToLower(), Does.Match("100.*even"));
 }
 public void ToString_ReturnEvenOrOdd_ReturnIsCorrect(string name, uint amount, bool even, string expectedReturn)
 {
     _uut = new EvenOddBet(name, amount, even);
     Assert.That(_uut.ToString(), Is.EqualTo(amount + "$ even/odd bet on " + expectedReturn));
 }