public void TestHasObjectives() { Assert.IsNull(configuration.ObjectivesDelegate); configuration.HasObjectives(x => x.Objectives); Assert.IsNotNull(configuration.ObjectivesDelegate); var instance = new TestDocument(); instance.Themes = new string[] { "value1", "value2" }; Assert.IsTrue(Object.ReferenceEquals(instance.Objectives, configuration.ObjectivesDelegate(instance))); }