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

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

            theBuild.Execute(theRunner);
        }
Example #2
0
        public void SetUp()
        {
            theSolution = new Solution(new SolutionConfig(), "some directory");
            theBuild = new BuildSolution(theSolution);

            theRunner = MockRepository.GenerateMock<IRippleStepRunner>();

            theBuild.Execute(theRunner);
        }
Example #3
0
 public bool Equals(BuildSolution other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other._solution, _solution));
 }
Example #4
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);
        }
Example #5
0
 public bool Equals(BuildSolution other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other._solution, _solution);
 }