public void TestHasOfficeSymbol() { Assert.IsNull(configuration.OfficeSymbolDelegate); configuration.HasOfficeSymbol(x => x.OfficeSymbol); Assert.IsNotNull(configuration.OfficeSymbolDelegate); var instance = new TestDocument(); instance.OfficeSymbol = "symbol"; Assert.IsTrue(Object.ReferenceEquals(instance.OfficeSymbol, configuration.OfficeSymbolDelegate(instance))); }