public void Example1()
        {
            string seatData = "BFFFBBFRRR";

            Day5.Seat resultSeat = new Day5.Seat(seatData);
            Assert.AreEqual(567, resultSeat.Id);
        }
        public void Example3()
        {
            string seatData = "BBFFBBFRLL";

            Day5.Seat resultSeat = new Day5.Seat(seatData);
            Assert.AreEqual(820, resultSeat.Id);
        }
        public void Example4()
        {
            string seatData = "FBFBBFFRLR";

            Day5.Seat resultSeat = new Day5.Seat(seatData);
            Assert.AreEqual(357, resultSeat.Id);
        }
Esempio n. 4
0
        public void TestID()
        {
            var seat = new Day5.Seat(44, 5);

            Assert.Equal(357, seat.ID);

            seat = new Day5.Seat(70, 7);
            Assert.Equal(567, seat.ID);

            seat = new Day5.Seat(14, 7);
            Assert.Equal(119, seat.ID);

            seat = new Day5.Seat(102, 4);
            Assert.Equal(820, seat.ID);
        }