コード例 #1
0
        public void MockedMethodCallback_WrapperMethodCalled_MockedMethodCalledAsExpected()
        {
            List <string> branchesAdded = new List <string>();

            // setup CreateBranch() so that it adds the parameter it has been called with to branchesAdded

            branchRepository.AddBranches(new string[] { "XXX", "YYY", "ZZZ" });
            Assert.AreEqual(new string[] { "XXX", "YYY", "ZZZ" }, branchesAdded);

            // add verification here
        }