Exemple #1
0
        public void should_return_node_value_when_a_node_implementation(string member)
        {
            var instance = new NodeMembers();
            var child    = new Node("yada");

            instance.SetPropertyOrFieldValue(member, child);
            var parent = CreateAccessModifierNode(Options.Create(),
                                                  new SimpleValue(instance, typeof(NodeMembers).ToCachedType()));

            parent.GetNode("yada").ShouldBeSameAs(child);
        }
Exemple #2
0
 public void should_return_node_value_when_a_node_implementation(string member)
 {
     var instance = new NodeMembers();
     var child = new Node("yada");
     instance.SetPropertyOrFieldValue(member, child);
     var parent = CreateAccessModifierNode(Options.Create(),
         new SimpleValue(instance, typeof (NodeMembers).ToCachedType()));
     parent.GetNode("yada").ShouldBeSameAs(child);
 }