public void streams_checkpoint_tag_is_incompatible()
 {
     var t = new EventByTypeIndexPositionTagger(new[] {"type1", "type2"});
     Assert.IsFalse(
         t.IsCompatible(
             CheckpointTag.FromStreamPositions(
                 new Dictionary<string, int> {{"$et-type1", 100}, {"$et-type2", 150}})));
 }
 public void the_same_events_checkpoint_tag_is_compatible()
 {
     var t = new EventByTypeIndexPositionTagger(new[] {"type1", "type2"});
     Assert.IsTrue(
         t.IsCompatible(
             CheckpointTag.FromEventTypeIndexPositions(
                 new TFPos(100, 50), new Dictionary<string, int> {{"type1", 100}, {"type2", 150}})));
 }
 public void position_checkpoint_tag_is_incompatible()
 {
     var t = new EventByTypeIndexPositionTagger(new[] {"type1", "type2"});
     Assert.IsFalse(t.IsCompatible(CheckpointTag.FromPosition(1000, 500)));
 }