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

            fish.IsFreshWater = true;
            Assert.True(fish.IsFreshWater);
        }
Beispiel #2
0
        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);
        }