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); }
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); }