Exemplo n.º 1
0
        public void ValidateAddProductSecond()
        {
            StorageMaster storageMaster     = new StorageMaster();
            var           tempAddProduct    = storageMaster.AddProduct("Ram", 1159);
            var           expctedAddProduct = "Added Ram to pool";

            Assert.AreEqual(tempAddProduct, expctedAddProduct);
        }
Exemplo n.º 2
0
        public void ValidateLoadVehicle()
        {
            StorageMaster storageMaster = new StorageMaster();

            storageMaster.RegisterStorage("Warehouse", "Pepi");
            storageMaster.SelectVehicle("Pepi", 0);
            storageMaster.AddProduct("Ram", 0.2);
            var temp = storageMaster.LoadVehicle(new string[] { "Ram" });

            Assert.That(temp, Is.EqualTo("Loaded 1/1 products into Semi"));
        }
        public void TestLoadVehicle()
        {
            StorageMaster master = new StorageMaster();

            master.RegisterStorage("Warehouse", "Pesho");
            master.SelectVehicle("Pesho", 0);
            master.AddProduct("Gpu", 5);
            string[] products = new string[] { "Gpu" };

            Assert.AreEqual("Loaded 1/1 products into Semi", master.LoadVehicle(products));
        }
        public void TestAddProduct()
        {
            StorageMaster master = new StorageMaster();

            Assert.AreEqual("Added Gpu to pool", master.AddProduct("Gpu", 5));
        }