public void VendingMachine_InsertMoney_Test()
 {
     Vm.SetState(Vm.NoMoneyInsertedState);
     Vm.InsertMoney(11.50);
     Assert.That(Vm.MoneyInserted.Equals(11.50));
     Vm.InsertMoney(2000.50);
     Assert.That(Vm.MoneyInserted.Equals(2012));
     Assert.That(Vm.CurrentState == Vm.MoneyInsertedState);
 }
예제 #2
0
 public void NoMoneyInsertedState_InsertMoney_Test()
 {
     Vm.SetState(Vm.NoMoneyInsertedState);
     Vm.InsertMoney(0.01);
     Assert.That(Vm.CurrentState == Vm.MoneyInsertedState);
 }