Пример #1
0
        public void LessThan2_Passed_NotPassed()
        {
            var target = new NameLengthRule("Х");
            var result = target.Passed();

            Assert.IsFalse(result);
        }
Пример #2
0
        public void Between2And100_Passed()
        {
            var arr    = new short[50];
            var name   = string.Join("", arr);
            var target = new NameLengthRule(name);
            var result = target.Passed();

            Assert.IsTrue(result);
        }
Пример #3
0
        public void MoreThan100_NotPassed()
        {
            var arr    = new short[101];
            var name   = string.Join("", arr);
            var target = new NameLengthRule(name);
            var result = target.Passed();

            Assert.IsFalse(result);
        }