public void TrainTimeClass_ResolveFootnotesMethod_ThrowsArgumentNullException_IfParameterIsNull() { TrainTime testObject = TrainTimeHelpers.GetTrainTime(); testObject.ResolveFootnotes(null); Assert.Fail(); }
public void TrainTimeClass_ResolveFootnotesMethod_ThrowsArgumentNullExceptionWithCorrectParamNameProperty_IfParameterIsNull() { TrainTime testObject = TrainTimeHelpers.GetTrainTime(); try { testObject.ResolveFootnotes(null); Assert.Fail(); } catch (ArgumentNullException ex) { Assert.AreEqual("allFootnotes", ex.ParamName); } }