Пример #1
0
        public void TestWhenListHaveOnlyNegativeElement()
        {
            //arrange
            List <int> test = new List <int>(new int[] { -5, -5, -7, -7 });

            //act
            List <int> output = new List <int>(new int[] { -5, -7 });

            //assert
            Assert.AreEqual(output, SecondsMaker.Seconds(test));
        }
Пример #2
0
        public void TestWhenListHaveThreeElement()
        {
            //arrange
            List <int> test = new List <int>(new int[] { -5, 5, 7 });

            //act
            List <int> output = new List <int>(new int[] { 5 });

            //assert
            Assert.AreEqual(output, SecondsMaker.Seconds(test));
        }