Example #1
0
        public void TestCase4()
        {
            var guests = new List <Guest>();
            var sut    = new GuestChairCalculator();

            var result = sut.CalculateFor(guests);

            result.Should().Be(0);
        }
Example #2
0
        public void TestCase3()
        {
            var guests = new List <Guest>
            {
                new Guest(1, 5),
                new Guest(1, 5)
            };
            var sut = new GuestChairCalculator();

            var result = sut.CalculateFor(guests);

            result.Should().Be(2);
        }
Example #3
0
        public void TestCase6()
        {
            var guests = new List <Guest>
            {
                new Guest(6, 7),
                new Guest(1, 5),
                new Guest(3, 8),
                new Guest(2, 5),
                new Guest(5, 6),
            };
            var sut = new GuestChairCalculator();

            var result = sut.CalculateFor(guests);

            result.Should().Be(3);
        }
Example #4
0
        public void TestCase5()
        {
            var guests = new List <Guest>
            {
                new Guest(1, 2),
                new Guest(1, 2),
                new Guest(1, 3),
                new Guest(2, 3),
                new Guest(4, 7),
                new Guest(4, 7)
            };
            var sut = new GuestChairCalculator();

            var result = sut.CalculateFor(guests);

            result.Should().Be(3);
        }