public void TestGetPhoneNumbers() { var instance = new TestDocument(); Assert.IsNull(configuration.GetPhoneNumbers(instance)); configuration.HasPhoneNumbers(x => x.PhoneNumbers); Assert.IsNull(configuration.GetPhoneNumbers(instance)); instance.Addresses = new string[] { "value" }; Assert.IsTrue(Object.ReferenceEquals(instance.PhoneNumbers, configuration.GetPhoneNumbers(instance))); }