public void Copy() { var stack = new StackState <DummyValue>(); stack.Push(CreateDummyValues(3)); var copy = stack.Copy(); Assert.Equal(stack.Top, copy.Top); Assert.Equal(stack.Size, copy.Size); Assert.Equal(stack.GetAllStackSlots(), copy.GetAllStackSlots()); }