示例#1
0
        public void Add_Two_Not_Secuential_Numbers_Balls_Will_Has_Those_Numbers_Sorted()
        {
            //arrage
            BallsSorter ballsSorter = new BallsSorter();

            //act
            ballsSorter.Add(2);
            ballsSorter.Add(1);
            var actual = ballsSorter.balls;

            //assert
            Assert.Equal(new[] { 1, 2 }, actual);
        }
示例#2
0
        public void Add_One_Number_Balls_Wll_Has_That_Number()
        {
            //arrage
            BallsSorter ballsSorter = new BallsSorter();

            //act
            ballsSorter.Add(1);
            var actual = ballsSorter.balls;

            //assert
            Assert.Equal(new[] { 1 }, actual);
        }