コード例 #1
0
        public void TestGetCountries()
        {
            var instance = new TestDocument();

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

            configuration.HasCountries(x => x.Countries);
            Assert.IsNull(configuration.GetCountries(instance));

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