public void t3_can_count_method_and_property_of_existing_class()
        {
            CSharpDocReader csharp = new CSharpDocReader();

            Assert.Throws <ArgumentException>(() => csharp.CountPropertyofClass(null));
            Assert.That(csharp.CountPropertyofClass("Unknow"), Is.EqualTo(0));
            Assert.That(csharp.CountPropertyofClass("CsvWriter"), Is.Not.EqualTo(null));

            Assert.Throws <ArgumentException>(() => csharp.CountMethodofClass(null));
            Assert.That(csharp.CountMethodofClass("CSharpDocReader"), Is.Not.EqualTo(200));
        }
        public void t1_can_create_file_for_detail_of_class()
        {
            TextWriter txt = new TextWriter("count_method_and_property", "csv");
            CsvWriter  csv = new CsvWriter(txt);

            csv.AddCell("Nom de classe");
            csv.AddCell("Nombre de méthodes");
            csv.AddCell("Nombre de propriété");
            csv.NewLine();
            CSharpDocReader csharp = new CSharpDocReader();

            //On charge les élements de la classe
            csharp.LoadClassElements("CsvWriter");
            csv.AddCell("CsvWriter");
            Assert.That(csharp.CountMethodofClass("CsvWriter"), Is.EqualTo(3));
            csv.AddCell(csharp.CountMethodofClass("CsvWriter").ToString());
            Assert.That(csharp.CountPropertyofClass("CsvWriter"), Is.EqualTo(2));
            csv.AddCell(csharp.CountPropertyofClass("CsvWriter").ToString());
            csv.NewLine();
        }