Exemplo n.º 1
0
        public void Spin_TestingUpperBound_ReturnsField36()
        {
            //Arrange
            _uut = new Roulette(new FakeRandomize(36));
            //Act
            _uut.Spin();
            Assert.That(_uut.GetResult().Number, Is.EqualTo(36));

        }
Exemplo n.º 2
0
 public RouletteGame(Roulette roulette)
 {
     _bets = new List<Bet>();
     _roulette = roulette;
 }
Exemplo n.º 3
0
 public void Fields_HaveRightNumber_HaveRightNumber(int n)
 {
     //Arrange
     _uut = new Roulette(new FakeRandomize(n));
     //Act Spin - For at kunne tilgå det n'te felt 
     _uut.Spin();
     // Assert
     Assert.That(_uut.GetResult().Number,Is.EqualTo(n));
 }
Exemplo n.º 4
0
 public void RunBeforeTests()
 {
     _uut = new Roulette(new FakeRandomize(0));
 }
Exemplo n.º 5
0
 public void Fields_HaveRightColor_ColorIS(int n, int c)
 {
     //Arrange
     _uut = new Roulette(new FakeRandomize(n));
     //Act Spin - For at kunne tilgå det n'te felt 
     _uut.Spin();
     // Assert
     Assert.That(_uut.GetResult().Color, Is.EqualTo(c));
 }