public void WhenMemberPropertyRefAcceptOnlyMemberOfExpectedType()
        {
            var hbm = new HbmOneToOne();
            var mapper = new OneToOneMapper(typeof(MyClass).GetProperty("Relation"), hbm);
            mapper.PropertyReference(typeof(Relation).GetProperty("Whatever"));

            hbm.propertyref.Should().Be("Whatever");

            ActionAssert.Throws<ArgumentOutOfRangeException>(() => mapper.PropertyReference(typeof(Array).GetProperty("Length")));
        }
        public void WhenNoMemberPropertyRefAcceptAnything()
        {
            var hbm = new HbmOneToOne();
            var mapper = new OneToOneMapper(null, hbm);
            mapper.PropertyReference(typeof(Array).GetProperty("Length"));

            hbm.propertyref.Should().Be("Length");
        }
        public void WhenNullMemberPropertyRefNull()
        {
            var hbm = new HbmOneToOne();
            var mapper = new OneToOneMapper(null, hbm);
            mapper.PropertyReference(null);

            hbm.propertyref.Should().Be.Null();
        }