public void StubAllCanHandlePropertiesGettingRegisteredMultipleTimes() { SpecificFish fish = MockRepository.Partial <SpecificFish>(); fish.IsFreshWater = true; Assert.True(fish.IsFreshWater); }
public void StubAllCanHandlePropertiesGettingRegisteredMultipleTimes() { MockRepository mocks = new MockRepository(); SpecificFish fish = mocks.Stub <SpecificFish>(); fish.IsFreshWater = true; Assert.True(fish.IsFreshWater); }
public void StubAllCanHandlePropertiesGettingRegisteredMultipleTimes() { SpecificFish fish = MockRepository.Partial <SpecificFish>(); fish.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault); fish.IsFreshWater = true; Assert.True(fish.IsFreshWater); }