コード例 #1
0
        public void EnumMember()
        {
            Enumeration en = new Enumeration(controller, "FileTypes");

            Enumeration.EnumMember item = new Enumeration.EnumMember(controller, "CSharp");
            Assert.That(item.FullyQualifiedDisplayName, Is.EqualTo("CSharp"));
            en.AddChild(item);

            Class cl = new Class(controller, "Class1");

            cl.AddChild(en);

            Assert.That(item.FullyQualifiedDisplayName, Is.EqualTo("Class1.FileTypes.CSharp"));
        }