示例#1
0
文件: Lemm.cs 项目: lepeap/TxTraktor
        public void TestWithCapitLetters1()
        {
            var token = new Token("Тест");

            token.Morphs = new MorphInfo[0];
            Checker.CheckCondition <LemmaCondition>(new [] { "тест" }, token, true);
        }
示例#2
0
文件: Lemm.cs 项目: lepeap/TxTraktor
        public void TestFalse()
        {
            var token = new Token("123");

            token.Morphs = new[]
            {
                new MorphInfo("123", new ReadOnlyDictionary <string, string>(new Dictionary <string, string>())),
            };
            Checker.CheckCondition <LemmaCondition>(new [] { "тест" }, token, false);
        }
示例#3
0
文件: Lemm.cs 项目: lepeap/TxTraktor
        public void TestWithCapitLetters()
        {
            var token = new Token("Тест");

            token.Morphs = new[]
            {
                new MorphInfo("тест", new ReadOnlyDictionary <string, string>(new Dictionary <string, string>())),
            };
            Checker.CheckCondition <LemmaCondition>(new [] { "тест" }, token, true);
        }
示例#4
0
        public void TestFalse()
        {
            var token = new Token("тест");

            token.Morphs = new[]
            {
                new MorphInfo("тест",
                              new ReadOnlyDictionary <string, string>(
                                  new Dictionary <string, string>()
                {
                    { "число", "ед" }
                })),
            };
            Checker.CheckCondition <MorphologyCondition>(new [] { "ед1" }, token, false);
        }
示例#5
0
 public void AllSmallCyrillic()
 {
     Checker.CheckCondition <AllLowercaseCondition>("тест", true);
 }
示例#6
0
 [Test] public void AllBigLatin()
 {
     Checker.CheckCondition <AllLowercaseCondition>("TEST", false);
 }
示例#7
0
 public void StartsBigLatin()
 {
     Checker.CheckCondition <StartsWithUpperCondition>("Test", true);
 }
示例#8
0
 public void TestTrue3()
 {
     Checker.CheckCondition <RegexCondition>(new [] { "тест1?" }, new Token("тест"), true);
 }
示例#9
0
 [Test] public void AllBigLatin()
 {
     Checker.CheckCondition <StartsWithUpperCondition>("TEST", true);
 }
示例#10
0
文件: Text.cs 项目: lepeap/TxTraktor
 public void TestFalse()
 {
     Checker.CheckCondition <TextCondition>(new [] { "1234" }, new Token("123"), false);
 }
示例#11
0
文件: Text.cs 项目: lepeap/TxTraktor
 public void TestLatinTrue()
 {
     Checker.CheckCondition <TextCondition>(new [] { "test" }, new Token("test"), true);
 }
示例#12
0
        public void EndTextFalse()
        {
            var token = new Token("11", 0, 0, 2, new TextInfo(3, 10));

            Checker.CheckCondition <EndTextCondition>(token, false);
        }
示例#13
0
 public void AllSmallCyrillic()
 {
     Checker.CheckCondition <AllUppercaseCondition>("тест", false);
 }
示例#14
0
 [Test] public void AllBigLatin()
 {
     Checker.CheckCondition <AllUppercaseCondition>("TEST", true);
 }
示例#15
0
 public void AllBigCyrillic()
 {
     Checker.CheckCondition <AllUppercaseCondition>("ТЕСТ", true);
 }
示例#16
0
 public void AllSmallLatinAndCyrillic()
 {
     Checker.CheckCondition <AllUppercaseCondition>("тестetalon", false);
 }
示例#17
0
 public void AllSmallLatin()
 {
     Checker.CheckCondition <AllUppercaseCondition>("etalon", false);
 }
示例#18
0
 public void AllSmallCyrillic()
 {
     Checker.CheckCondition <StartsWithUpperCondition>("тест", false);
 }
示例#19
0
文件: Text.cs 项目: lepeap/TxTraktor
 public void TestCyrillicTrue()
 {
     Checker.CheckCondition <TextCondition>(new [] { "тест" }, new Token("тест"), true);
 }
示例#20
0
 public void AllSmallLatin()
 {
     Checker.CheckCondition <AllLowercaseCondition>("etalon", true);
 }
示例#21
0
文件: Text.cs 项目: lepeap/TxTraktor
 public void TestNumberTrue()
 {
     Checker.CheckCondition <TextCondition>(new [] { "123" }, new Token("123"), true);
 }
示例#22
0
        public void StartTextTrue()
        {
            var token = new Token("11", 0, 5, 7, new TextInfo(2, 7));

            Checker.CheckCondition <StartTextCondition>(token, true);
        }
示例#23
0
 public void AllSmallLatinAndCyrillic()
 {
     Checker.CheckCondition <AllLowercaseCondition>("тестetalon", true);
 }
示例#24
0
 public void AllBigCyrillic()
 {
     Checker.CheckCondition <StartsWithUpperCondition>("ТЕСТ", true);
 }
示例#25
0
 public void StartsBigCyrillic()
 {
     Checker.CheckCondition <AllLowercaseCondition>("Тест", false);
 }
示例#26
0
 public void StartsBigLatin()
 {
     Checker.CheckCondition <AllLowercaseCondition>("Test", false);
 }
示例#27
0
        public void StartTextFalse()
        {
            var token = new Token("11", 2, 3, 5, new TextInfo(3, 10));

            Checker.CheckCondition <StartTextCondition>(token, false);
        }
示例#28
0
 public void AllBigCyrillic()
 {
     Checker.CheckCondition <AllLowercaseCondition>("ТЕСТ", false);
 }
示例#29
0
 public void TestFalse1()
 {
     Checker.CheckCondition <RegexCondition>(new [] { "тест" }, new Token("123"), false);
 }
示例#30
0
 public void StartsBigCyrillic()
 {
     Checker.CheckCondition <StartsWithUpperCondition>("Тест", true);
 }