public void ValidatingEmptyCurrencyFails() { var sut = new ClassWithCurrencyAttribute() { Currency = string.Empty }; Assert.IsFalse(sut.IsValid()); }
public void ValidatingCurrencyFails() { var sut = new ClassWithCurrencyAttribute() { Currency = "XYZ" }; Assert.IsFalse(sut.IsValid()); }
public void ValidatingNullCurrencyFails() { var sut = new ClassWithCurrencyAttribute() { Currency = default(string) }; Assert.IsFalse(sut.IsValid()); }
public void ValidatingCurrencySucceeds() { var sut = new ClassWithCurrencyAttribute() { Currency = "EUR" }; Assert.IsTrue(sut.IsValid()); }