Beispiel #1
0
        public void CrashMove_Victory_VictoryOneOfCrashMove(CrashMove crashMove_1, CrashMove crashMove_2, CrashMove crashMove_3, int result)
        {
            Assert.That(crashMove_1.Victory(crashMove_2), Is.EqualTo(result));
            Assert.That(crashMove_2.Victory(crashMove_3), Is.EqualTo(result));

            //Arrange

            //Act

            //Assert
        }
Beispiel #2
0
        public void CrashMove_Nothing_NoResult()
        {
            // Arrange
            CrashMove crashMove = null;
            var       truck     = new Truck();

            // Act
            //var result = truck.Victory(crashMove) != -2 ;
            var result_2 = truck.Victory(crashMove) == -2;

            // Assert
            Warn.Unless(result_2);
            //Warn.Unless(result);
        }