Пример #1
0
        public void Then_returns_X_and_Y_as_number_divided_by_2(int number, int expectedX, int expectedY)
        {
            var split = Gillian.Split(number);

            split.ShouldSplitTo(expectedX, expectedY);
        }
Пример #2
0
        public void Then_returns_X_and_Y_as_number_divided_by_2()
        {
            var split = Gillian.Split(12);

            split.ShouldSplitTo(6, 6);
        }
Пример #3
0
 public void Then_does_not_split()
 {
     Assert.That(() => Gillian.Split(1), Throws.TypeOf <ArgumentException>());
 }
Пример #4
0
        public void Then_returns_X_as_1_and_Y_as_remainder(int number, int expectedX, int expectedY)
        {
            var split = Gillian.Split(number);

            split.ShouldSplitTo(expectedX, expectedY);
        }
Пример #5
0
        public void Then_returns_X_as_one_third_of_number_and_Y_as_remainder(int number, int expectedX, int expectedY)
        {
            var split = Gillian.Split(9);

            split.ShouldSplitTo(3, 6);
        }