public void Build_Should_ReturnResult_When_MemberSetOnConstructor() { IVehicleStub member = new VehicleStub(1, 2); var actual = new VehicleMemberBuilder(member).Build(); Assert.NotNull(actual); Assert.Equal(member.Speed, actual.Speed); Assert.Equal(member.NumberOfWheels, actual.NumberOfWheels); }
public void Build_Should_ReturnDefaultResult_When_MemberNotSet() { var actual = new VehicleMemberBuilder().Build(); Assert.Null(actual); }