Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
verdie-g committed May 26, 2024
1 parent 45a1381 commit 3fd77d9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions EventPipe.Test/EventPipeReaderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ public async Task MetadataAndEventBlockTest()
Assert.That(trace.Events[0].ActivityId, Is.EqualTo(Guid.Empty));
Assert.That(trace.Events[0].RelatedActivityId, Is.EqualTo(Guid.Empty));
Assert.That(trace.Events[0].Payload, Has.Count.EqualTo(5));
Assert.That(trace.Events[0].Payload, Does.ContainKey("OriginatingTaskSchedulerID").WithValue(1));
Assert.That(trace.Events[0].Payload, Does.ContainKey("OriginatingTaskID").WithValue(0));
Assert.That(trace.Events[0].Payload, Does.ContainKey("TaskID").WithValue(4));
Assert.That(trace.Events[0].Payload, Does.ContainKey("Behavior").WithValue(2));
Assert.That(trace.Events[0].Payload, Does.ContainKey("ContinueWithTaskID").WithValue(5));
Assert.That(trace.Events[0].Payload["OriginatingTaskSchedulerID"], Is.EqualTo(1));
Assert.That(trace.Events[0].Payload["OriginatingTaskID"], Is.EqualTo(0));
Assert.That(trace.Events[0].Payload["TaskID"], Is.EqualTo(4));
Assert.That(trace.Events[0].Payload["Behavior"], Is.EqualTo(2));
Assert.That(trace.Events[0].Payload["ContinueWithTaskID"], Is.EqualTo(5));

Assert.That(trace.Events[1].Index, Is.EqualTo(1));
Assert.That(trace.Events[1].SequenceNumber, Is.EqualTo(2));
Expand All @@ -76,11 +76,11 @@ public async Task MetadataAndEventBlockTest()
Assert.That(trace.Events[1].ActivityId, Is.EqualTo(Guid.Empty));
Assert.That(trace.Events[1].RelatedActivityId, Is.EqualTo(Guid.Empty));
Assert.That(trace.Events[1].Payload, Has.Count.EqualTo(5));
Assert.That(trace.Events[1].Payload, Does.ContainKey("OriginatingTaskSchedulerID").WithValue(1));
Assert.That(trace.Events[1].Payload, Does.ContainKey("OriginatingTaskID").WithValue(0));
Assert.That(trace.Events[1].Payload, Does.ContainKey("TaskID").WithValue(5));
Assert.That(trace.Events[1].Payload, Does.ContainKey("Behavior").WithValue(2));
Assert.That(trace.Events[1].Payload, Does.ContainKey("ContinueWithTaskID").WithValue(3));
Assert.That(trace.Events[1].Payload["OriginatingTaskSchedulerID"], Is.EqualTo(1));
Assert.That(trace.Events[1].Payload["OriginatingTaskID"], Is.EqualTo(0));
Assert.That(trace.Events[1].Payload["TaskID"], Is.EqualTo(5));
Assert.That(trace.Events[1].Payload["Behavior"], Is.EqualTo(2));
Assert.That(trace.Events[1].Payload["ContinueWithTaskID"], Is.EqualTo(3));
});
}

Expand Down

0 comments on commit 3fd77d9

Please sign in to comment.