public void ForceBuild()
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            Mock.Get(serverClient).SetupSet(_serverClient => _serverClient.SessionToken = It.IsAny <string>());
            Mock.Get(serverClient).Setup(_serverClient => _serverClient.ForceBuild("yyy", It.Is <List <NameValuePair> >(_parameters => _parameters.SequenceEqual(NameValuePair.FromDictionary(parameters)))));

            manager.ForceBuild(null, parameters, null);
            mocks.VerifyAll();
        }
        public void ForceBuild()
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            Expect.Call(serverClient.SessionToken).PropertyBehavior();
            Expect.Call(() =>
            {
                serverClient.ForceBuild("yyy", NameValuePair.FromDictionary(parameters));
            });
            mocks.ReplayAll();

            manager.ForceBuild(null, parameters, null);
            mocks.VerifyAll();
        }