示例#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);
        }