public void IngresoFakeTest() { cBanco = new CuentaBancaria(lNulo) { Balance = 100 }; cBanco.Ingreso(100); Assert.That(cBanco.Balance, Is.EqualTo(200)); }
public void IngresoStub() { var log = new LogNuloConResultado(false); cBanco = new CuentaBancaria(log) { Balance = 100 }; cBanco.Ingreso(100); Assert.That(cBanco.Balance, Is.EqualTo(200)); }
public void IngresoTest() { var log = new Mock <ILog>(); cBank = new CuentaBancaria(log.Object) { Balance = 100 }; cBank.Ingreso(100); Assert.That(cBank.Balance, Is.EqualTo(200)); }