public void TrainSegmentModelClassCopyMethodReturnsObjectWithToWorkCellPropertyWithCorrectDisplayedTextProperty() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); Assert.AreEqual(testObject.ToWorkCell.DisplayedText, testOutput.ToWorkCell.DisplayedText); }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithPageFootnotesPropertyOfCorrectLength() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); Assert.AreEqual(testObject.PageFootnotes.Count, testOutput.PageFootnotes.Count); }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithCorrectContinuesLaterProperty() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); Assert.AreEqual(testObject.ContinuesLater, testOutput.ContinuesLater); }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithToWorkCellPropertyWithCorrectActualTimeProperty() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); Assert.AreEqual(testObject.ToWorkCell.ActualTime, testOutput.ToWorkCell.ActualTime); }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithCorrectLocoDiagramProperty() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); Assert.AreEqual(testObject.LocoDiagram, testOutput.LocoDiagram); }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithCorrectInlineNoteProperty() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); Assert.AreEqual(testObject.InlineNote, testOutput.InlineNote); }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithCorrectIncludeSeparatorBelowProperty() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); Assert.AreEqual(testObject.IncludeSeparatorBelow, testOutput.IncludeSeparatorBelow); }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithCorrectHalfOfDayProperty() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); Assert.AreEqual(testObject.HalfOfDay, testOutput.HalfOfDay); }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithPageFootnotesPropertyContainingObjectsWithCorrectDisplayOnPageProperty() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); for (int i = 0; i < testObject.PageFootnotes.Count; ++i) { Assert.AreEqual(testObject.PageFootnotes[i].DisplayOnPage, testOutput.PageFootnotes[i].DisplayOnPage); } }
public void TrainSegmentModelClassCopyMethodReturnsObjectWithTimingsPropertyWithContentsWithCorrectLocationKeyProperties() { TrainSegmentModel testObject = GetTestObject(null, null, null, null); TrainSegmentModel testOutput = testObject.Copy(); for (int i = 0; i < testOutput.Timings.Count; ++i) { Assert.AreEqual(testObject.Timings[i].LocationKey, testOutput.Timings[i].LocationKey); } }