示例#1
0
        public void SetUp()
        {
            theSolution = new Solution();
            theBuild    = new BuildSolution(theSolution);

            theRunner = MockRepository.GenerateMock <Local.IRippleStepRunner>();

            theBuild.Execute(theRunner);
        }
示例#2
0
        public void SetUp()
        {
            theSolution = new Solution();
            theBuild    = new BuildSolution(theSolution);

            theRunner    = MockRepository.GenerateMock <Local.IRippleStepRunner>();
            theException = new NotImplementedException();

            theRunner.Expect(x => x.BuildSolution(theSolution)).Throw(theException);

            Exception <NotImplementedException> .ShouldBeThrownBy(() =>
            {
                theBuild.Execute(theRunner);
            }).ShouldBeTheSameAs(theException);
        }