public void ChangedStateThrowsArgumentNullExceptionWhenInputIsInvalid( [ValueSource("changeStateInvalidDataSet")] ChangeStateTestData testData) { Should.Throw <ArgumentNullException>(() => _raceInstance.ChangeState(testData.State)); }
public void ChangedStateHasValidChangesTypingRaceStateWhenInputIsValid( [ValueSource("changeStateValidDataSet")] ChangeStateTestData testData) { _raceInstance.ChangeState(testData.State); _raceInstance.State.GetType().ShouldBe(testData.ExpectedResult.GetType()); }