public void TestCopy() { List <Context> selected = new List <Context>(); Context result = new Context(); result.Tokens.Add("a"); result.Tokens.Add("b"); result.Tokens.Add("c"); selected.Add(result); Expect.Once.On(m_ResultViewHelper).Method("GetSelectedItems").Will(Return.Value(selected)); Expect.Once.On(m_ClipBoardHelper).Method("Copy").With("abc"); m_GeneratorController.Copy(); m_Mockery.VerifyAllExpectationsHaveBeenMet(); m_Mockery.VerifyAllExpectationsHaveBeenMet(); }