- Act -

In this section we execute the unit of code that we're going to test through its entry point by using the required parameters to simulate the situation we're going to verify in the unit test.
test("the airplane state should be FLYING after takeoff", () => {
/// Arrange
const fakeEngine: IEngine = new FakeEngine();
const fakeFuelTank: ITank = new FakeTank();
const airplane: Airplane = new Airplane(fakeEngine, fakeFuelTank);
/**
* Notice that we clearly mark the Act section
* and we invoke the unit of code we're going to
* test
*/
/// Act
airplane.takeoff();
/// Rest of the test
});






