Exemplo n.º 1
0
 public void Members()
 {
     XmlClassMapping rm = new XmlClassMapping(GetNhvClassFor(typeof(Address)));
     List<MemberInfo> mi = new List<MemberInfo>(rm.GetMembers());
     Assert.AreEqual(8, mi.Count);
 }
Exemplo n.º 2
0
 public void InvalidPropertyName()
 {
     var map = new XmlClassMapping(GetNhvClassFor(typeof(A)));
     Assert.Throws<InvalidPropertyNameException>(() => map.GetMembers());
 }