public void Validate10Min() { HourDividerValidator validator = new HourDividerValidator(); validator.Validate(TimeSpan.FromMinutes(10)); }
public void CanValidateInt() { HourDividerValidator validator = new HourDividerValidator(); Assert.IsFalse(validator.CanValidate(typeof(int))); }
public void CanValidateTimeSpan() { HourDividerValidator validator = new HourDividerValidator(); Assert.IsTrue(validator.CanValidate(typeof(TimeSpan))); }
public void CanValidateNull() { HourDividerValidator validator = new HourDividerValidator(); validator.CanValidate(null); }