public void Should_return_true_when_a_crew_member_can_be_together_with_other() { var crewMember = new CrewMemberMock("name"); var result = crewMember.CanBeTogetherWith(new Pilot("pilot")); Assert.True(result); }
public void Should_return_false_when_a_crew_member_cannot_be_together_with_other() { var crewMember = new CrewMemberMock("name"); crewMember.AddIncompatibleCrewMemberType(typeof(Pilot)); var result = crewMember.CanBeTogetherWith(new Pilot("pilot")); Assert.False(result); }