Ejemplo n.º 1
0
        public void TestGetGoals()
        {
            var instance = new TestDocument();

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

            configuration.HasGoals(x => x.Goals);
            Assert.IsNull(configuration.GetGoals(instance));

            instance.Goals = new string[] { "value" };
            Assert.IsTrue(Object.ReferenceEquals(instance.Goals, configuration.GetGoals(instance)));
        }