public void BAddressWithInvalidNameCityOrPostalCode_WhenCreateValidated_IsFalse() { BAddress address = new BAddress { Street_Number = -1, City = "12312312312312312312312312313", Postal_Code = "VVV VVVVV" }; bool valid = address.CreateValid(); Assert.AreEqual(valid, false); }
public void BAddressWithValidNameCityOrPostalCode_WhenCreateValidated_IsTrue() { BAddress address = new BAddress { Street_Number = 1, Street_Name="Street Name", City = "City", Postal_Code= "VVV VVV" }; bool valid = address.CreateValid(); Assert.AreEqual(valid, true); }