コード例 #1
0
 public void ShouldCallAddSearchTabToItem(
     BucketProvider current,
     SwitchingBucketProvider sut,
     Item item)
 {
     using (new BucketProviderSwitcher(current))
     {
         sut.AddSearchTabToItem(item);
         current.Received().AddSearchTabToItem(item);
     }
 }
コード例 #2
0
 public void ShouldCallAddSearchTabToItem([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item)
 {
     sut.AddSearchTabToItem(item);
     current.Received().AddSearchTabToItem(item);
 }