public void Can_get_weak_DataMember() { var dto = new ClassOne(); var dataMemberAttr = dto.GetType().GetProperty("Id").GetWeakDataMember(); Assert.That(dataMemberAttr.Name, Is.Null); dataMemberAttr = dto.GetType().GetProperty("List").GetWeakDataMember(); Assert.That(dataMemberAttr.Name, Is.EqualTo("listClassTwo")); Assert.That(dataMemberAttr.Order, Is.EqualTo(1)); }