public void CheckIfSendVehicleThrowsExceptionWithInvalidReciver() { Storagemaster storageMaster = new Storagemaster(); storageMaster.RegisterStorage("Warehouse", "house"); Assert.Throws <InvalidOperationException>(() => storageMaster.SendVehicleTo("house", 1, "dsa")); }
public void CheckIfSendVehicle() { Storagemaster storageMaster = new Storagemaster(); storageMaster.RegisterStorage("Warehouse", "source"); storageMaster.RegisterStorage("Warehouse", "receiver"); string actualResult = storageMaster.SendVehicleTo("source", 1, "receiver"); string expectedResult = $"Sent Semi to receiver (slot 3)"; Assert.AreEqual(expectedResult, actualResult); }
public void CheckIfSendVehicleThrowsExceptionWithInvalidSourse() { Storagemaster storageMaster = new Storagemaster(); Assert.Throws <InvalidOperationException>(() => storageMaster.SendVehicleTo("asd", 1, "dsa")); }