Пример #1
0
        public void TestGetAddresses()
        {
            var instance = new TestDocument();

            Assert.IsNull(configuration.GetAddresses(instance));

            configuration.HasAddresses(x => x.Addresses);
            Assert.IsNull(configuration.GetAddresses(instance));

            instance.Addresses = new string[] { "value" };
            Assert.IsTrue(Object.ReferenceEquals(instance.Addresses, configuration.GetAddresses(instance)));
        }