public void ShouldClearAllIntegerMappersAndInputOutputMappings() { // Arrange _memoizer.Memoize(1, 2); _memoizer.Memoize(3, 4); // Act _memoizer.ClearAll(); // Assert Assert.Equal(1u, _inputMapper.MappedObjectsCount); // only contains empty case Assert.Equal(1u, _outputMapper.MappedObjectsCount); // only contains empty case Assert.Equal(0, _memoizer.GetOutput(1)); Assert.Equal(0, _memoizer.GetOutput(3)); }