Пример #1
0
        public void PlannerClass_GetTimeCell_SelectedValuesAndEdgeCases()
        {
            new TimeCell(10, 10, 'A').AssertHasSamePropertyValues(_classUnderTest.GetTimeCell(0, 0));
            new TimeCell(10, 10, 'A').AssertHasSamePropertyValues(_classUnderTest.GetTimeCell(1, 1));
            new TimeCell(10, 10, 'A').AssertHasSamePropertyValues(_classUnderTest.GetTimeCell(10, 10));
            new TimeCell(12, 9, 'A').AssertHasSamePropertyValues(_classUnderTest.GetTimeCell(11, 9));
            new TimeCell(10, 20, 'B').AssertHasSamePropertyValues(_classUnderTest.GetTimeCell(10, 11));

            new TimeCell(10, 219, 'Z', false, true, true).AssertHasSamePropertyValues(_classUnderTest.GetTimeCell(10, 219));
            Assert.IsNull(_classUnderTest.GetTimeCell(10, 220), "Should be null for 10 metres for 220 mins");
            Assert.IsNull(_classUnderTest.GetTimeCell(43, 0), "Should be null for 43m for 0 mins");
            Assert.IsNull(_classUnderTest.GetTimeCell(43, 9), "Should be null for 43m for 9 mins");
        }