public void TestChercheDierese() { List <ZonePoeme> zpL = AnalyseDierese.ChercheDierese(ttt, pws, 0); StringBuilder sb = new StringBuilder(); //foreach (ZonePoeme zp in zpL) //{ // foreach (Vers v in zp.vList) // { // sb.AppendLine(v.Syllabes()); // } //} //Assert.AreEqual(expiationSyls, sb.ToString()); TestTheText.CompareWordByWord(expiationSyls, TestTheText.ToSyllabes(pws)); foreach (ZonePoeme zp in zpL) { foreach (Vers v in zp.vList) { if (v.nrPieds > 4) { Assert.AreEqual(zp.nrPiedsVoulu, v.nrPieds); } } } }