Пример #1
0
        public void TestParseMany1()
        {
            var d = UserDefinition.ParseMany("  Atko PuttItOut, FuzzyWords, v/test, @Amalek,   u/Mick; /u/moe");

            Assert.AreEqual(7, d.Count());
            Assert.AreEqual(1, d.Count(x => x.Type == IdentityType.Subverse));
            Assert.AreEqual(6, d.Count(x => x.Type == IdentityType.User));

            foreach (var def in d)
            {
                Assert.AreEqual(def.Name, def.Name.Trim());
            }
        }
Пример #2
0
        public void TestParseMany4()
        {
            var d = UserDefinition.ParseMany(" /u /Atko PuttItOut, Fuzzy.Words, @v/test, @Amalek,   u/Mick; /u/moe", false);

            Assert.AreEqual(6, d.Count());
        }
Пример #3
0
        public void TestParseMany3()
        {
            var d = UserDefinition.ParseMany("  Atko aTko , ATko; atko AtkO", false);

            Assert.AreEqual(5, d.Count());
        }
Пример #4
0
        public void TestParseMany2()
        {
            var d = UserDefinition.ParseMany("  Atko aTko , ATko; atko AtkO; atko, atko, atko    atko");

            Assert.AreEqual(1, d.Count());
        }