public void is_message_after_checkpoint_tag_after_case() { var t = new EventByTypeIndexPositionTagger(0, new[] {"type1", "type2"}); var result = t.IsMessageAfterCheckpointTag( CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(10, 5), new Dictionary<string, int> {{"type1", 0}, {"type2", -1}}), _firstEvent); Assert.IsTrue(result); }
public void is_message_after_checkpoint_tag_incompatible_streams_case() { var t = new EventByTypeIndexPositionTagger(new[] {"type1", "type2"}); var result = t.IsMessageAfterCheckpointTag( CheckpointTag.FromEventTypeIndexPositions( new TFPos(30, 20), new Dictionary<string, int> {{"type1", -1}, {"type3", -1}}), _firstEvent); Assert.IsFalse(result); }
public void is_message_after_checkpoint_tag_tf_only_before_case() { var t = new EventByTypeIndexPositionTagger(new[] {"type1", "type2"}); var result = t.IsMessageAfterCheckpointTag( CheckpointTag.FromEventTypeIndexPositions( new TFPos(40, 35), new Dictionary<string, int> {{"type1", 0}, {"type2", 0}}), _firstEvent); Assert.IsFalse(result); }