-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nullable for tests-projects with already handled projects #1370
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1370 +/- ##
==========================================
+ Coverage 73.91% 79.86% +5.94%
==========================================
Files 267 165 -102
Lines 9615 4703 -4912
==========================================
- Hits 7107 3756 -3351
+ Misses 2508 947 -1561
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
@@ -41,6 +41,7 @@ public void AddTraceEnricherOfTRegistersEnricher() | |||
using var source = new ActivitySource(SourceName); | |||
using (var activity = source.StartActivity(SourceName)) | |||
{ | |||
Assert.NotNull(activity); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really need these Assert.NotNull(activity);
statements. The unit tests would fail anyway if the activity ends up being null
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can use either use !
as null-forgiving operator or add this assertion. Assertion looks better IMO.
Towards #894.
Changes
Nullable for tests-projects with already handled projects.
While reviewing consider to check each commit separately.
For significant contributions please make sure you have completed the following items:
[ ] AppropriateCHANGELOG.md
updated for non-trivial changes[ ] Design discussion issue #[ ] Changes in public API reviewed