public void can_adjust_stream_position_tag() { var t = new MultiStreamPositionTagger(new[] {"stream1", "stream2"}); var tag = CheckpointTag.FromStreamPositions( new Dictionary<string, int> {{"stream1", 1}, {"stream2", -1}}); var original = CheckpointTag.FromStreamPosition("stream1", 1); Assert.AreEqual(tag, t.AdjustTag(original)); }
public void adjust_compatible_tag_returns_the_same_tag() { var t = new MultiStreamPositionTagger(new[] {"stream1", "stream2"}); var tag = CheckpointTag.FromStreamPositions( new Dictionary<string, int> {{"stream1", 1}, {"stream2", 2}}); Assert.AreEqual(tag, t.AdjustTag(tag)); }