public void Should_Return_List_With_Member_Name_If_There_Is_Static_Member() { //DynamicPerson object has a static Name Property dynamic propertyBag = new DynamicPerson(); IEnumerable <string> memberList = propertyBag.GetStaticMemberNames(); //Wrap IEnumerable in a list to simplify Assert List <string> propertyList = new List <string>(memberList); Assert.IsNotNull(propertyList); //Check if property list contain "Name" at the first position Assert.AreEqual("Name", propertyList[0]); Assert.AreEqual(1, propertyList.Count); }