public void IsValid() { var item = new BmiDto() { Height = 300, Weight = 500, }; Assert.IsTrue(item.IsValid()); }
public void IsInvalid_TooLight() { var item = new BmiDto() { Weight = 0.999F, Height = 150, }; Assert.IsFalse(item.IsValid()); }
public void IsInvalid_TooTiny() { var item = new BmiDto() { Height = 1, Weight = 150, }; Assert.IsFalse(item.IsValid()); }
public void IsInvalid_TooHeavy() { var item = new BmiDto() { Weight = 501, Height = 150, }; Assert.IsFalse(item.IsValid()); }