public void DisplayStringContainsAmount() { var volume = VolumeFactory.Teaspoons(1m); Assert.IsTrue(volume.DisplayString.StartsWith("1")); }
public void ToGallons() { var volume = VolumeFactory.Teaspoons(192m); Assert.IsTrue(volume.ToGallons() == 0.25m); }
public void PluralStringFalse() { var volume = VolumeFactory.Teaspoons(1m); Assert.IsFalse(volume.DisplayString.EndsWith("s")); }
private IVolume GetVolume(decimal value) { return(VolumeFactory.Teaspoons(value)); }