function TestSession.pushNode(H,B)local t=TestResults.createNode(B)local E=H.nodeStack[#H.nodeStack]or H.results table.insert(E.children,t)table.insert(H.nodeStack,t)local g=H.contextStack[#H.contextStack]local W=Context.new(g)table.insert(H.contextStack,W)local d=H.expectationContextStack[#H.expectationContextStack]local U=ExpectationContext.new(d)table.insert(H.expectationContextStack,U)end

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
