public void TestharnessRejectIn()
        {
            int expectedCounter = 1;
            int actualCounter;

            actualCounter = Testharness.RejectItemIn();
            Assert.AreEqual(expectedCounter, actualCounter);
        }
        public void TestWarehouswithMostItemsShouldBeEqual()
        {
            Testharness t = new Testharness();

            Warehouse[] w = new Warehouse[Constants.WarehouseNumber];
            for (int i = 0; i < Constants.WarehouseNumber; i++)
            {
                w[i] = new Warehouse();
            }
            w[0] = Testharness.InitialWarehouse("Warehouseitems1.txt", "warehouse1");
            w[1] = Testharness.InitialWarehouse("Warehouseitems1.txt", "warehouse2");
            w[0].CounteTotalItems();
            w[1].CounteTotalItems();
            t.WarehouswithMostItems(w);
            Assert.IsTrue(w[0].totalItems >= w[1].totalItems);
        }
        public void TestharnessNumberOfExpiratedItemInWarehouse()
        {
            Warehouse[] w = new Warehouse[2];
            double      expectedW1ItemsNumberofExpiration = 3;
            double      expectedW2ItemsNumberofExpiration = 1;
            double      ActualW1ItemsNumberofExpiration;
            double      ActualW2ItemsNumberofExpiration;

            for (int j = 0; j < Constants.WarehouseNumber; j++)
            {
                w[j] = new Warehouse();
            }
            w = Testharness.WarehouswithExpiratedItems();
            ActualW1ItemsNumberofExpiration = w[0].totalExpiratedItems;
            ActualW2ItemsNumberofExpiration = w[1].totalExpiratedItems;
            Assert.AreEqual(expectedW1ItemsNumberofExpiration, ActualW1ItemsNumberofExpiration);
            Assert.AreEqual(expectedW2ItemsNumberofExpiration, ActualW2ItemsNumberofExpiration);
        }