コード例 #1
0
        public void TestGetName()
        {
            var instance = new TestDocument();

            Assert.IsNull(configuration.GetName(instance));

            configuration.HasName(x => x.Name);
            Assert.IsNull(configuration.GetName(instance));

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