public void DocumentOptionsClassCopyMethodReturnsNewObject() { DocumentOptions testObject = GetDocumentOptions(); DocumentOptions testOutput = testObject.Copy(); Assert.AreNotSame(testOutput, testObject); }
public void DocumentOptionsClassCopyMethodReturnsNewObjectWithCorrectGraphEditStyleProperty() { DocumentOptions testObject = GetDocumentOptions(); DocumentOptions testOutput = testObject.Copy(); Assert.AreEqual(testObject.GraphEditStyle, testOutput.GraphEditStyle); }
public void DocumentOptionsClassCopyMethodReturnsNewObjectWithCorrectDisplayTrainLabelsOnGraphsProperty() { DocumentOptions testObject = GetDocumentOptions(); DocumentOptions testOutput = testObject.Copy(); Assert.AreEqual(testObject.DisplayTrainLabelsOnGraphs, testOutput.DisplayTrainLabelsOnGraphs); }
public void DocumentOptionsClassCopyMethodReturnsNewObjectWithCorrectClockTypeProperty() { DocumentOptions testObject = GetDocumentOptions(); DocumentOptions testOutput = testObject.Copy(); Assert.AreEqual(testObject.ClockType, testOutput.ClockType); }
public void DocumentOptionsClassCopyMethodReturnsNewObjectWithCorrectFormattingStringsPropertiesIfClockTypeIsTwentyFourHourClock() { DocumentOptions testObject = GetDocumentOptions(ClockType.TwentyFourHourClock); TimeDisplayFormattingStrings testOutput = testObject.Copy().FormattingStrings; Assert.AreEqual("HH{0}mmf", testOutput.Complete); Assert.AreEqual("HH mmf", testOutput.TimeWithoutFootnotes); Assert.AreEqual("HH", testOutput.Hours); Assert.AreEqual("mmf", testOutput.Minutes); Assert.AreEqual("HH:mmf", testOutput.Tooltip); }