Skip to content

Commit

Permalink
Fix missed nullables
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Jun 13, 2022
1 parent 83b58e5 commit c5ae97a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playground/TestPlatform.Playground/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ public int LaunchProcessWithDebuggerAttached(TestProcessStartInfo testProcessSta
throw new NotImplementedException();
}

private static string WriteTests(IEnumerable<TestResult> testResults)
private static string WriteTests(IEnumerable<TestResult>? testResults)
=> WriteTests(testResults?.Select(t => t.TestCase));

private static string WriteTests(IEnumerable<TestCase> testCases)
private static string WriteTests(IEnumerable<TestCase>? testCases)
=> testCases?.Any() == true
? "\t" + string.Join("\n\t", testCases.Select(r => r.DisplayName))
: "\t<empty>";
Expand Down Expand Up @@ -240,7 +240,7 @@ public int LaunchTestHost(TestProcessStartInfo defaultTestHostStartInfo, Cancell

internal class TestSessionHandler : ITestSessionEventsHandler
{
public TestSessionInfo TestSessionInfo { get; private set; }
public TestSessionInfo? TestSessionInfo { get; private set; }

public void HandleLogMessage(TestMessageLevel level, string message)
{
Expand Down

0 comments on commit c5ae97a

Please sign in to comment.