public void ShouldBeAbleToConvertANumberThatisLessThanOrEqualToNegativeAMillion() { // Setup const double numberToFormat = -1000000; INumberFormatter formatter = new MillionNumberFormatter(); // Test bool result = formatter.CanHandle(numberToFormat); //Verify Assert.AreEqual(true, result); }
public void ShouldNotAbleToConvertNumberThatIsLessThanAMillion() { // Setup const double numberToFormat = 999999; INumberFormatter formatter = new MillionNumberFormatter(); // Test bool result = formatter.CanHandle(numberToFormat); //Verify Assert.AreEqual(false, result); }