public void ValidateEntryNumericAndInMinMaxBounds_AboveMaxValue() { using (ServiceMock mocks = new ServiceMock()) { mocks.MockConfigService(3, 4, 8); EntryValidation validator = new EntryValidation(); Assert.IsFalse(validator.ValidateEntryNumericAndInMinMaxBounds("9")); } }
public void ValidateEntryNumericAndInMinMaxBounds_ValueJustRight() { using (ServiceMock mocks = new ServiceMock()) { mocks.MockConfigService(3, 4, 4); EntryValidation validator = new EntryValidation(); Assert.IsTrue(validator.ValidateEntryNumericAndInMinMaxBounds("4")); } }
public void ValidateEntryNumericAndInMinMaxBounds_NonNumeric() { using (ServiceMock mocks = new ServiceMock()) { mocks.MockConfigService(3, 1, 8); EntryValidation validator = new EntryValidation(); Assert.IsFalse(validator.ValidateEntryNumericAndInMinMaxBounds("bacon is the best")); } }