public void TestCopyAdvanced() { List <Context> selected = new List <Context>(); Context result = new Context(); result.Tokens.Add("a"); result.Tokens.Add("b"); result.Tokens.Add("c"); Context branch = result.Branch("b1"); branch.Tokens.Add("d"); selected.Add(result); Expect.Once.On(m_ResultViewHelper).Method("GetSelectedItems").Will(Return.Value(selected)); Expect.Once.On(m_ClipBoardHelper).Method("Copy").With(String.Format("abc{0}\tb1: abcd", Environment.NewLine)); m_GeneratorController.CopyDescription(); m_Mockery.VerifyAllExpectationsHaveBeenMet(); m_Mockery.VerifyAllExpectationsHaveBeenMet(); }