Esempio n. 1
0
        public void TrainTimeClass_ResolveFootnotesMethod_ThrowsArgumentNullException_IfParameterIsNull()
        {
            TrainTime testObject = TrainTimeHelpers.GetTrainTime();

            testObject.ResolveFootnotes(null);

            Assert.Fail();
        }
Esempio n. 2
0
        public void TrainTimeClass_ResolveFootnotesMethod_ThrowsArgumentNullExceptionWithCorrectParamNameProperty_IfParameterIsNull()
        {
            TrainTime testObject = TrainTimeHelpers.GetTrainTime();

            try
            {
                testObject.ResolveFootnotes(null);
                Assert.Fail();
            }
            catch (ArgumentNullException ex)
            {
                Assert.AreEqual("allFootnotes", ex.ParamName);
            }
        }