public void TestPersonBuyACar() { Person person = new Person("Juan", "Perez", 25); Assert.True(person.BuyCar(1000)); }
public void TestPersonCantBuyACar() { Person person = new Person("Juan", "Perez", 25); Assert.False(person.BuyCar(-1000000)); }
public void TestPriceMajorToCash() { Person source = new Person("PEDRO", "MIGUEL", 20); Assert.AreEqual(false, source.BuyCar(150000)); }
public void Testdontbyacar() { Person source = new Person("PEDRO", "MIGUEL", 20); Assert.AreEqual(false, source.BuyCar(-150000)); }
public void TestBuyaCarWithSamePriceThatCash() { Person source = new Person("PEDRO", "MIGUEL", 20); Assert.AreEqual(true, source.BuyCar(100000)); }
public void TestBuyaCarWithPricePositive() { Person source = new Person("PEDRO", "MIGUEL", 20); Assert.AreEqual(true, source.BuyCar(5000)); }
public void TestBuyaCarWithPriceNegative() { Person source = new Person("PEDRO", "MIGUEL", 20); Assert.AreEqual(false, source.BuyCar(-100)); }