public void TestListAll() { _mockStore1.Setup(x => x.ListAll()).Returns(new[] { _digest1 }); _mockStore2.Setup(x => x.ListAll()).Returns(new[] { _digest2 }); CollectionAssert.AreEquivalent(new[] { _digest1, _digest2 }, _testStore.ListAll(), "Should combine results from all stores"); }
public void TestListAll() { _mockStore1.Setup(x => x.ListAll()).Returns(new[] { _digest1 }); _mockStore2.Setup(x => x.ListAll()).Returns(new[] { _digest2 }); _testStore.ListAll().Should().BeEquivalentTo(new[] { _digest1, _digest2 }, because: "Should combine results from all stores"); }