public void SetUp() { r1 = MockRepository.GenerateStub <IDependencyStrategy>(); r2 = MockRepository.GenerateStub <IDependencyStrategy>(); d1 = new Dependency("FubuCore", "1.0.0.215"); d2 = new Dependency("Bottles", "1.0.0.212"); var project = new Project("MyProject.csproj"); r1.Stub(x => x.Matches(project)).Return(false); r2.Stub(x => x.Matches(project)).Return(true); r2.Stub(x => x.Read(project)).Return(new[] { d1, d2 }); theReader = new ProjectReader(new[] { r1, r2 }); theProject = theReader.Read("MyProject.csproj"); }
public void SetUp() { r1 = MockRepository.GenerateStub<IDependencyStrategy>(); r2 = MockRepository.GenerateStub<IDependencyStrategy>(); d1 = new Dependency("FubuCore", "1.0.0.215"); d2 = new Dependency("Bottles", "1.0.0.212"); var project = new Project("MyProject.csproj"); r1.Stub(x => x.Matches(project)).Return(false); r2.Stub(x => x.Matches(project)).Return(true); r2.Stub(x => x.Read(project)).Return(new[] {d1, d2}); theReader = new ProjectReader(new[] {r1, r2}); theProject = theReader.Read("MyProject.csproj"); }