public void GetCommand() { VarNode varnode = new VarNode("a", null, new ConstantNode(42)); ObjectNode node = new ObjectNode("Foo", varnode); var result = node.GetCommand(); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(ObjectCommand)); }