Пример #1
0
        public void Output3Test()
        {
            Tube tube = new Tube(100000, 101, 51);

            Assert.AreEqual(114101, tube.GetTotalDistanceOfMillimeters());

            tube = new Tube(100000, 101, 51);
            tube = new Tube("marbles.txt");
            Assert.AreEqual(114101, tube.GetTotalDistanceOfMillimeters());
        }
Пример #2
0
        public void OutputExpectedTest()
        {
            Tube tube = new Tube(expectedLength, expectedMarbles, expectedCheck);

            Assert.AreEqual(expectedTotalDistance, tube.GetTotalDistanceOfMillimeters());

            tube = new Tube(expectedLength, expectedMarbles, expectedCheck);
            tube = new Tube("marbles.txt");
            Assert.AreEqual(expectedTotalDistance, tube.GetTotalDistanceOfMillimeters());

            tube = new Tube("marbles.txt");
            Assert.AreEqual(expectedTotalDistance, tube.GetTotalDistanceOfMillimeters());
        }