예제 #1
0
 public void WordsInResourceAre1000()
 {
     var validator = new GoodString();
     using (var stream = CreateResource())
     {
         Assert.AreEqual(1000, validator.GetWords(InputReader.ReadResource(stream)).Count());
     }
 }
예제 #2
0
        public void TestMethod8()
        {
            var validator = new GoodString();

            using (var stream = CreateResource())
            {
                Assert.AreEqual(51, validator.CountGood(InputReader.ReadResource(stream), validator.IsGood2));
            }
        }
예제 #3
0
        public void Test_qjhvhtzxzqqjkmpb_IsGood2()
        {
            var validator = new GoodString();

            Assert.IsTrue(validator.IsGood2("qjhvhtzxzqqjkmpb"));
        }
예제 #4
0
        public void Test_dvszwmarrgswjxmb_IsNotGood()
        {
            var validator = new GoodString();

            Assert.IsFalse(validator.IsGood("dvszwmarrgswjxmb"));
        }
예제 #5
0
        public void Test_jchzalrnumimnmhp_IsNotGood()
        {
            var validator = new GoodString();

            Assert.IsFalse(validator.IsGood("jchzalrnumimnmhp"));
        }
예제 #6
0
        public void Test_haegwjzuvuyypxyu_IsNotGood()
        {
            var validator = new GoodString();

            Assert.IsFalse(validator.IsGood("haegwjzuvuyypxyu"));
        }
예제 #7
0
        public void Test_aaa_IsGood()
        {
            var validator = new GoodString();

            Assert.IsTrue(validator.IsGood("aaa"));
        }
예제 #8
0
        public void Test_ugknbfddgicrmopn_IsGood()
        {
            var validator = new GoodString();

            Assert.IsTrue(validator.IsGood("ugknbfddgicrmopn"));
        }
예제 #9
0
        public void Test_ieodomkazucvgmuy_IsNotGood2()
        {
            var validator = new GoodString();

            Assert.IsFalse(validator.IsGood2("ieodomkazucvgmuy"));
        }
예제 #10
0
        public void Test_uurcxstgmygtbstg_IsNotGood2()
        {
            var validator = new GoodString();

            Assert.IsFalse(validator.IsGood2("uurcxstgmygtbstg"));
        }
예제 #11
0
        public void Test_xxyxx_IsGood2()
        {
            var validator = new GoodString();

            Assert.IsTrue(validator.IsGood2("xxyxx"));
        }