Example #1
0
        public void AsPropertyProvider_should_return_added_item()
        {
            var parent   = new NameScope();
            var instance = new object();

            parent.RegisterName("c", instance);
            var pp = parent.AsPropertyProvider();

            Assert.Same(instance, pp.GetProperty("c"));
        }