public void Spin_TestingUpperBound_ReturnsField36() { //Arrange _uut = new Roulette(new FakeRandomize(36)); //Act _uut.Spin(); Assert.That(_uut.GetResult().Number, Is.EqualTo(36)); }
public RouletteGame(Roulette roulette) { _bets = new List<Bet>(); _roulette = roulette; }
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)); }
public void RunBeforeTests() { _uut = new Roulette(new FakeRandomize(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)); }