Beispiel #1
0
        public void AddOverFuelTest()
        {
            // Arrange
            B52 b52 = new B52();

            //Act
            // Assert
            Assert.ThrowsException <FuelErrorException>(() => b52.AddFuel(300001));
        }
Beispiel #2
0
        public void TakeOffLimitTest()
        {
            // Arrange
            B52 b52 = new B52();

            b52.Weight = 200000;
            // Act
            // Assert
            Assert.ThrowsException <WeightErrorException>(() => b52.AddFuel(300000));
        }
Beispiel #3
0
        public void AddFuelTest()
        {
            // Arrange
            B52 b52      = new B52();
            int expected = 100000;

            // Act
            b52.AddFuel(100000);

            // Assert
            Assert.AreEqual(expected, b52.Fuel);
        }