Пример #1
0
        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));
        }
Пример #2
0
        public void Validate_WrongLongName_ThrowException()
        {
            GeneralValidation val = new GeneralValidation();

            val.IsValidLongName(null);
        }