public void ShouldCallIsItemContainedWithinBucket( BucketProvider current, SwitchingBucketProvider sut, Item item) { using (new BucketProviderSwitcher(current)) { current.IsItemContainedWithinBucket(item).Returns(true); sut.IsItemContainedWithinBucket(item).Should().BeTrue(); } }
public void IsItemContainedWithinBucketReturnsFalseIfNoCurrentProvider(SwitchingBucketProvider sut, Item item) { sut.IsItemContainedWithinBucket(item).Should().BeFalse(); }
public void ShouldCallIsItemContainedWithinBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item) { current.IsItemContainedWithinBucket(item).Returns(true); sut.IsItemContainedWithinBucket(item).Should().BeTrue(); }