public void IndexByAllNames()
 {
     NodeFieldReferenceCollection nodes = new NodeFieldReferenceCollection();
     hibernatemapping hm = new hibernatemapping();
     NodeFieldReference field = new NodeFieldReference(hm,
         typeof(hibernatemapping).GetField("Items"),
         new SchemaEditorNodeTestFactory(), new SchemaEditorTestNode("blah", null, null));
     nodes.Add(field);
     Assert.AreSame(field,nodes[typeof(@class)]);
     Assert.AreSame(field,nodes[typeof(@joinedsubclass)]);
 }
 public void SetUp()
 {
     hm = new hibernatemapping();
     parent = new SchemaEditorTestNode("hibernate-mapping",hm,fieldReference);
     fieldReference = new ArrayNodeFieldReference(hm, typeof (hibernatemapping).GetField("Items"), new SchemaEditorNodeTestFactory(), parent);
 }
 public void SetUp()
 {
     hm = new hibernatemapping();
     fieldReference = new AttributeFieldReference(hm, typeof (hibernatemapping).GetField("defaultcascade"), null);
 }