public void ShouldWriteOneToOnes() { var mapping = new DynamicComponentMapping(); mapping.AddOneToOne(new OneToOneMapping()); writer.VerifyXml(mapping) .Element("one-to-one").Exists(); }
public void OneToOnesCollectionHasSameCountAsMapping() { mapping.AddOneToOne(new OneToOneMapping()); inspector.OneToOnes.Count().ShouldEqual(1); }