public void Validate_WrongLongName_ReturnFalse() { GeneralValidation val = new GeneralValidation(); string name = string.Join("", Enumerable.Repeat(0, 256).Select(n => (char)new Random().Next(127))); Assert.IsFalse(val.IsValidLongName(name)); }
public void Validate_WrongLongName_ThrowException() { GeneralValidation val = new GeneralValidation(); val.IsValidLongName(null); }