public void ValidateEntryLength_Passing() { using (ServiceMock mocks = new ServiceMock()) { mocks.MockConfigService(3); EntryValidation validator = new EntryValidation(); Assert.IsTrue(validator.ValidateEntryLength("moo")); } }
public void ValidateEntryLength_Failing() { using (ServiceMock mocks = new ServiceMock()) { mocks.MockConfigService(3); EntryValidation validator = new EntryValidation(); Assert.IsFalse(validator.ValidateEntryLength("bacon")); } }