Пример #1
0
        private void TestProperty(string propertyName)
        {
            TypeDefinition theclass = GetTypeDef <ConcreteClass> ();

            var members = DocumentationEnumerator.GetReflectionMembers(theclass, propertyName, "Property").ToArray();

            Assert.IsTrue(members.Any(), "no members found");
            Assert.AreEqual(1, members.Count(), "Different # of members found");
            Assert.AreEqual(propertyName, members.Single().Name);
        }
Пример #2
0
        public void FindProperty_NonExistent()
        {
            string propertyName = "mdoc.Test.EnumeratorTests.IDontExist.AProperty";

            TypeDefinition theclass = GetTypeDef <ConcreteClass> ();

            var members = DocumentationEnumerator.GetReflectionMembers(theclass, propertyName, "Property").ToArray();


            Assert.IsFalse(members.Any(), "Invalid Member Matched");
        }