コード例 #1
0
 public void ShouldCallIsItemContainedWithinBucket(
     BucketProvider current,
     SwitchingBucketProvider sut,
     Item item)
 {
     using (new BucketProviderSwitcher(current))
     {
         current.IsItemContainedWithinBucket(item).Returns(true);
         sut.IsItemContainedWithinBucket(item).Should().BeTrue();
     }
 }
コード例 #2
0
 public void IsItemContainedWithinBucketReturnsFalseIfNoCurrentProvider(SwitchingBucketProvider sut, Item item)
 {
     sut.IsItemContainedWithinBucket(item).Should().BeFalse();
 }
コード例 #3
0
 public void ShouldCallIsItemContainedWithinBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item)
 {
     current.IsItemContainedWithinBucket(item).Returns(true);
     sut.IsItemContainedWithinBucket(item).Should().BeTrue();
 }