public void TrainTimeClassCopyAndReflectMethodReturnsObjectWithCorrectNumberOfFootnotes() { TrainTime testObject = TrainTimeHelpers.GetTrainTime(); TimeOfDay testParam0 = _rnd.NextTimeOfDay(); TrainTime testOutput = testObject.CopyAndReflect(testParam0); Assert.AreEqual(testOutput.Footnotes.Count, testObject.Footnotes.Count); }
public void TrainTimeClassCopyAndReflectMethodReturnsObjectWithTimePropertyWithExpectedValueIfTimePropertyIsNotNull() { TrainTime testObject = TrainTimeHelpers.GetTrainTime(); TimeOfDay testParam0 = _rnd.NextTimeOfDay(); TrainTime testOutput = testObject.CopyAndReflect(testParam0); Assert.AreEqual(testObject.Time.CopyAndReflect(testParam0), testOutput.Time); }
public void TrainTimeClassCopyAndReflectMethodReturnsObjectWithTimePropertyThatIsDifferentObjectIfTimePropertyIsNotNull() { TrainTime testObject = TrainTimeHelpers.GetTrainTime(); TimeOfDay testParam0 = _rnd.NextTimeOfDay(); TrainTime testOutput = testObject.CopyAndReflect(testParam0); Assert.AreNotSame(testObject.Time, testOutput.Time); }
public void TrainTimeClassCopyAndReflectMethodReturnsDifferentObject() { TrainTime testObject = TrainTimeHelpers.GetTrainTime(); TimeOfDay testParam0 = _rnd.NextTimeOfDay(); TrainTime testOutput = testObject.CopyAndReflect(testParam0); Assert.AreNotSame(testObject, testOutput); }
public void TrainTimeClassCopyAndReflectMethodReturnsObjectIfTimePropertyIsNull() { TrainTime testObject = TrainTimeHelpers.GetTrainTime(); testObject.Time = null; TimeOfDay testParam0 = _rnd.NextTimeOfDay(); TrainTime testOutput = testObject.CopyAndReflect(testParam0); Assert.IsNull(testOutput.Time); }
public void TrainTimeClassCopyAndReflectMethodReturnsObjectWithFootnotesPropertyWithSameContents() { TrainTime testObject = TrainTimeHelpers.GetTrainTime(); TimeOfDay testParam0 = _rnd.NextTimeOfDay(); TrainTime testOutput = testObject.CopyAndReflect(testParam0); for (int i = 0; i < testOutput.Footnotes.Count; ++i) { Assert.AreSame(testObject.Footnotes[i], testOutput.Footnotes[i]); } }