Пример #1
0
        public void DocumentOptionsClassCopyMethodReturnsNewObject()
        {
            DocumentOptions testObject = GetDocumentOptions();

            DocumentOptions testOutput = testObject.Copy();

            Assert.AreNotSame(testOutput, testObject);
        }
Пример #2
0
        public void DocumentOptionsClassCopyMethodReturnsNewObjectWithCorrectGraphEditStyleProperty()
        {
            DocumentOptions testObject = GetDocumentOptions();

            DocumentOptions testOutput = testObject.Copy();

            Assert.AreEqual(testObject.GraphEditStyle, testOutput.GraphEditStyle);
        }
Пример #3
0
        public void DocumentOptionsClassCopyMethodReturnsNewObjectWithCorrectDisplayTrainLabelsOnGraphsProperty()
        {
            DocumentOptions testObject = GetDocumentOptions();

            DocumentOptions testOutput = testObject.Copy();

            Assert.AreEqual(testObject.DisplayTrainLabelsOnGraphs, testOutput.DisplayTrainLabelsOnGraphs);
        }
Пример #4
0
        public void DocumentOptionsClassCopyMethodReturnsNewObjectWithCorrectClockTypeProperty()
        {
            DocumentOptions testObject = GetDocumentOptions();

            DocumentOptions testOutput = testObject.Copy();

            Assert.AreEqual(testObject.ClockType, testOutput.ClockType);
        }
Пример #5
0
        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);
        }