public void ShouldWriteManyToOnes() { var mapping = new DynamicComponentMapping(); mapping.AddReference(new ManyToOneMapping()); writer.VerifyXml(mapping) .Element("many-to-one").Exists(); }
public void ReferencesCollectionHasSameCountAsMapping() { mapping.AddReference(new ManyToOneMapping()); inspector.References.Count().ShouldEqual(1); }