public void SetUp() { declarations = new DeclarationQueue <MyClass>(listSize); declaration1 = Substitute.For <IDeclaration <MyClass> >(); declaration2 = Substitute.For <IDeclaration <MyClass> >(); globalDeclaration = Substitute.For <IGlobalDeclaration <MyClass> >(); declaration1.Start.Returns(0); declaration1.End.Returns(10); }
public void SetUp() { mocks = new MockRepository(); declarations = new DeclarationQueue <MyClass>(listSize); declaration1 = mocks.DynamicMock <IDeclaration <MyClass> >(); declaration2 = mocks.DynamicMock <IDeclaration <MyClass> >(); globalDeclaration = mocks.DynamicMock <IGlobalDeclaration <MyClass> >(); using (mocks.Record()) { declaration1.Stub(x => x.Start).Return(0).Repeat.Any(); declaration1.Stub(x => x.End).Return(10).Repeat.Any(); } }
public void SetUp() { mocks = new MockRepository(); declarations = new DeclarationQueue<MyClass>(listSize); declaration1 = mocks.DynamicMock<IDeclaration<MyClass>>(); declaration2 = mocks.DynamicMock<IDeclaration<MyClass>>(); globalDeclaration = mocks.DynamicMock<IGlobalDeclaration<MyClass>>(); using (mocks.Record()) { declaration1.Stub(x => x.Start).Return(0).Repeat.Any(); declaration1.Stub(x => x.End).Return(10).Repeat.Any(); } }