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

            mapping.AddOneToOne(new OneToOneMapping());

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

            mapping.AddOneToOne(new OneToOneMapping());

            writer.VerifyXml(mapping)
                .Element("one-to-one").Exists();
        }
Exemplo n.º 3
0
 public void OneToOnesCollectionHasSameCountAsMapping()
 {
     mapping.AddOneToOne(new OneToOneMapping());
     inspector.OneToOnes.Count().ShouldEqual(1);
 }