public void TestHasPointsOfContact() { Assert.IsNull(configuration.PointsOfContactDelegate); configuration.HasPointsOfContact(x => x.PointsOfContact); Assert.IsNotNull(configuration.PointsOfContactDelegate); var instance = new TestDocument(); instance.PointsOfContact = new string[] { "value1", "value2" }; Assert.IsTrue(Object.ReferenceEquals(instance.PointsOfContact, configuration.PointsOfContactDelegate(instance))); }