Пример #1
0
        public void EnsureFormAll()
        {
            var form = new Form();

            Assert.Equal(0, form.AllCheckCount);
            form.AllCheck("abcx");
            Assert.Equal(4, form.AllCheckCount);
            form.AllCheck("abcy");
            Assert.Equal(3, form.AllCheckCount);
            form.AllCheck("abcz");
            Assert.Equal(3, form.AllCheckCount);
            form.AllCheck("1ASH");
            Assert.Equal(0, form.AllCheckCount);
            form = new Form();
            form.AllCheck("adgvrhblps");
            Assert.Equal(10, form.AllCheckCount);
            form.AllCheck("pghsdrbmalv");
            Assert.Equal(10, form.AllCheckCount);
            form.AllCheck("hrlbpdasgv");
            Assert.Equal(10, form.AllCheckCount);
            form.AllCheck("bgvsdplahr");
            Assert.Equal(10, form.AllCheckCount);
            form = new Form();
            form.AllCheck("lgnpfhrm");
            Assert.Equal(8, form.AllCheckCount);
            form.AllCheck("hwmng");
            Assert.Equal(4, form.AllCheckCount);
            form.AllCheck("gunhmo");
            Assert.Equal(4, form.AllCheckCount);
        }