public void Defect_Close_ShouldBeFixed() { //Arrange State inProgressState = new InProgress(); Defect defect = new Defect(inProgressState); //Act defect.Close(); //Assert defect.State.ShouldBeOfType(typeof(Fixed)); }