public void another_streams_checkpoint_tag_is_incompatible() { var t = new MultiStreamPositionTagger(new[] {"stream1", "stream2"}); Assert.IsFalse( t.IsCompatible( CheckpointTag.FromStreamPositions( new Dictionary<string, int> {{"stream2", 100}, {"stream3", 150}}))); }
public void position_checkpoint_tag_is_incompatible() { var t = new MultiStreamPositionTagger(new[] {"stream1", "stream2"}); Assert.IsFalse(t.IsCompatible(CheckpointTag.FromPosition(1000, 500))); }
public void the_same_stream_checkpoint_tag_is_compatible() { var t = new MultiStreamPositionTagger(0, new[] {"stream1", "stream2"}); Assert.IsTrue( t.IsCompatible( CheckpointTag.FromStreamPositions(0, new Dictionary<string, int> {{"stream1", 100}, {"stream2", 150}}))); }