Beispiel #1
0
        public void TestHasStatus()
        {
            Assert.IsNull(configuration.StatusDelegate);
            configuration.HasStatus(x => x.Status);
            Assert.IsNotNull(configuration.StatusDelegate);

            var instance = new TestDocument();

            instance.Status = "status";
            Assert.AreEqual(instance.Status, configuration.StatusDelegate(instance));
        }