Skip to content

Commit

Permalink
Fixed Null-Ref warning (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfoidl authored Jun 8, 2020
1 parent d745297 commit c99d0ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/trx2junit/Internal/trx2junit/Trx2JunitTestConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public void Convert()

foreach (var testSuite in testSuites)
{
if (testSuite.Key is null) throw new InvalidOperationException("TestSuite.Key is null");

this.AddTestSuite(testSuite.Key, testSuite);
}
}
Expand Down Expand Up @@ -115,7 +117,9 @@ private struct Counters
{
public int TestCount;
public int Failures;
#pragma warning disable CS0649
public int Errors;
#pragma warning restore CS0649
public int Skipped;
public TimeSpan Time;
public DateTime? TimeStamp;
Expand Down

0 comments on commit c99d0ce

Please sign in to comment.