コード例 #1
0
        public void ClearStrictCollectionAndDisposesItNonGeneric()
        {
            CollectionBase collection = MockRepository.MockMulti <CollectionBase>(new Type[] { typeof(IDisposable) });

            collection.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault);
            ClearStrictCollectionAndDisposesItCommon(collection);
        }
コード例 #2
0
        public void ClearStrictCollectionAndDisposesItGeneric()
        {
            CollectionBase collection = MockRepository.Mock <CollectionBase, IDisposable>();

            collection.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault);
            ClearStrictCollectionAndDisposesItCommon(collection);
        }