Пример #1
0
        public void TestHasName()
        {
            Assert.IsNull(configuration.NameDelegate);
            configuration.HasName(x => x.Name);
            Assert.IsNotNull(configuration.NameDelegate);

            var instance = new TestDocument();

            instance.Name = "name";
            Assert.AreEqual(instance.Name, configuration.NameDelegate(instance));
        }