예제 #1
0
        public void StubAllCanHandlePropertiesGettingRegisteredMultipleTimes()
        {
            SpecificFish fish = MockRepository.Partial <SpecificFish>();

            fish.IsFreshWater = true;
            Assert.True(fish.IsFreshWater);
        }
예제 #2
0
        public void StubAllCanHandlePropertiesGettingRegisteredMultipleTimes()
        {
            MockRepository mocks = new MockRepository();
            SpecificFish   fish  = mocks.Stub <SpecificFish>();

            fish.IsFreshWater = true;
            Assert.True(fish.IsFreshWater);
        }
예제 #3
0
        public void StubAllCanHandlePropertiesGettingRegisteredMultipleTimes()
        {
            SpecificFish fish = MockRepository.Partial <SpecificFish>();

            fish.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault);

            fish.IsFreshWater = true;
            Assert.True(fish.IsFreshWater);
        }