function TestSession.pushNode(W,b)local s=TestResults.createNode(b)local D=W.nodeStack[#W.nodeStack]or W.results table.insert(D.children,s)table.insert(W.nodeStack,s)local j=W.contextStack[#W.contextStack]local m=Context.new(j)table.insert(W.contextStack,m)local K=W.expectationContextStack[#W.expectationContextStack]local k=ExpectationContext.new(K)table.insert(W.expectationContextStack,k)end
--[[
	Create a new test result node and push it onto the navigation stack.
]]
function TestSession:pushNode(planNode)
	local node = TestResults.createNode(planNode)
	local lastNode = self.nodeStack[#self.nodeStack] or self.results
	table.insert(lastNode.children, node)
	table.insert(self.nodeStack, node)

	local lastContext = self.contextStack[#self.contextStack]
	local context = Context.new(lastContext)
	table.insert(self.contextStack, context)

	local lastExpectationContext = self.expectationContextStack[#self.expectationContextStack]
	local expectationContext = ExpectationContext.new(lastExpectationContext)
	table.insert(self.expectationContextStack, expectationContext)
end
