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