public void TestWithCapitLetters1() { var token = new Token("Тест"); token.Morphs = new MorphInfo[0]; Checker.CheckCondition <LemmaCondition>(new [] { "тест" }, token, true); }
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); }
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); }
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); }
public void AllSmallCyrillic() { Checker.CheckCondition <AllLowercaseCondition>("тест", true); }
[Test] public void AllBigLatin() { Checker.CheckCondition <AllLowercaseCondition>("TEST", false); }
public void StartsBigLatin() { Checker.CheckCondition <StartsWithUpperCondition>("Test", true); }
public void TestTrue3() { Checker.CheckCondition <RegexCondition>(new [] { "тест1?" }, new Token("тест"), true); }
[Test] public void AllBigLatin() { Checker.CheckCondition <StartsWithUpperCondition>("TEST", true); }
public void TestFalse() { Checker.CheckCondition <TextCondition>(new [] { "1234" }, new Token("123"), false); }
public void TestLatinTrue() { Checker.CheckCondition <TextCondition>(new [] { "test" }, new Token("test"), true); }
public void EndTextFalse() { var token = new Token("11", 0, 0, 2, new TextInfo(3, 10)); Checker.CheckCondition <EndTextCondition>(token, false); }
public void AllSmallCyrillic() { Checker.CheckCondition <AllUppercaseCondition>("тест", false); }
[Test] public void AllBigLatin() { Checker.CheckCondition <AllUppercaseCondition>("TEST", true); }
public void AllBigCyrillic() { Checker.CheckCondition <AllUppercaseCondition>("ТЕСТ", true); }
public void AllSmallLatinAndCyrillic() { Checker.CheckCondition <AllUppercaseCondition>("тестetalon", false); }
public void AllSmallLatin() { Checker.CheckCondition <AllUppercaseCondition>("etalon", false); }
public void AllSmallCyrillic() { Checker.CheckCondition <StartsWithUpperCondition>("тест", false); }
public void TestCyrillicTrue() { Checker.CheckCondition <TextCondition>(new [] { "тест" }, new Token("тест"), true); }
public void AllSmallLatin() { Checker.CheckCondition <AllLowercaseCondition>("etalon", true); }
public void TestNumberTrue() { Checker.CheckCondition <TextCondition>(new [] { "123" }, new Token("123"), true); }
public void StartTextTrue() { var token = new Token("11", 0, 5, 7, new TextInfo(2, 7)); Checker.CheckCondition <StartTextCondition>(token, true); }
public void AllSmallLatinAndCyrillic() { Checker.CheckCondition <AllLowercaseCondition>("тестetalon", true); }
public void AllBigCyrillic() { Checker.CheckCondition <StartsWithUpperCondition>("ТЕСТ", true); }
public void StartsBigCyrillic() { Checker.CheckCondition <AllLowercaseCondition>("Тест", false); }
public void StartsBigLatin() { Checker.CheckCondition <AllLowercaseCondition>("Test", false); }
public void StartTextFalse() { var token = new Token("11", 2, 3, 5, new TextInfo(3, 10)); Checker.CheckCondition <StartTextCondition>(token, false); }
public void AllBigCyrillic() { Checker.CheckCondition <AllLowercaseCondition>("ТЕСТ", false); }
public void TestFalse1() { Checker.CheckCondition <RegexCondition>(new [] { "тест" }, new Token("123"), false); }
public void StartsBigCyrillic() { Checker.CheckCondition <StartsWithUpperCondition>("Тест", true); }