Exemplo n.º 1
0
        public void OrdersNotation_DisplayOrders()
        {
            Order[] orders = new Order[5];

            orders[0] = new Order(20, new Caravan(1, 1, 1, 3));
            orders[1] = new Order(17, new Caravan(1, 0, 0, 4));
            orders[2] = new Order(9, new Caravan(2, 1, 0, 1));
            orders[3] = new Order(12, new Caravan(0, 0, 4, 0));
            orders[4] = new Order(16, new Caravan(0, 2, 0, 3));

            string displayString = ProgramOutput.OrdersNotation(orders);

            Assert.Equal("Board Orders: [0: (20 - {YGBRRR}), 1: (17 - {YRRRR}), 2: (9 - {YYGR}), 3: (12 - {BBBB}), 4: (16 - {GGRRR}), ]", displayString);
        }