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()); } }
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()); }
public void TestParseMany3() { var d = UserDefinition.ParseMany(" Atko aTko , ATko; atko AtkO", false); Assert.AreEqual(5, d.Count()); }
public void TestParseMany2() { var d = UserDefinition.ParseMany(" Atko aTko , ATko; atko AtkO; atko, atko, atko atko"); Assert.AreEqual(1, d.Count()); }