public void ShouldWriteManyToOnes()
        {
            var mapping = new DynamicComponentMapping();

            mapping.AddReference(new ManyToOneMapping());

            writer.VerifyXml(mapping)
            .Element("many-to-one").Exists();
        }
        public void ShouldWriteManyToOnes()
        {
            var mapping = new DynamicComponentMapping();

            mapping.AddReference(new ManyToOneMapping());

            writer.VerifyXml(mapping)
                .Element("many-to-one").Exists();
        }
Пример #3
0
 public void ReferencesCollectionHasSameCountAsMapping()
 {
     mapping.AddReference(new ManyToOneMapping());
     inspector.References.Count().ShouldEqual(1);
 }