Skip to content

Commit

Permalink
test: Fix unit tests broken after NUnit update
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Jan 7, 2025
1 parent 6d7efcc commit a07edab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void AcceptDistributedTraceHeadersHydratesValidNewRelicPayload(string hea
Assert.That(tracingState.Priority, Is.EqualTo(Priority));
Assert.That(tracingState.Sampled, Is.EqualTo(Sampled));
Assert.That(tracingState.TransactionId, Is.EqualTo(TransactionId));
Assert.That(tracingState.Timestamp, Is.Not.EqualTo(default), $"Timestamp should not be {(DateTime)default}");
Assert.That(tracingState.Timestamp, Is.Not.EqualTo(default(DateTime)), $"Timestamp should not be {(DateTime)default}");
Assert.That(tracingState.TransportDuration, Is.GreaterThan(TimeSpan.Zero), $"TransportDuration should not be Zero");
});
}
Expand Down Expand Up @@ -222,7 +222,7 @@ public void AcceptDistributedTraceHeadersHydratesValidW3CTraceContext()
Assert.That(tracingState.Sampled, Is.EqualTo(Sampled));
Assert.That(tracingState.TransactionId, Is.EqualTo(TransactionId));
Assert.That(tracingState.ParentId, Is.EqualTo(ParentId));
Assert.That(tracingState.Timestamp, Is.Not.EqualTo(default), $"Timestamp should not be {(DateTime)default}");
Assert.That(tracingState.Timestamp, Is.Not.EqualTo(default(DateTime)), $"Timestamp should not be {(DateTime)default}");
Assert.That(tracingState.TransportDuration, Is.GreaterThan(TimeSpan.Zero), $"TransportDuration should not be Zero");
});
}
Expand Down

0 comments on commit a07edab

Please sign in to comment.