public void CallsSourceProviderWhenTestCaseSourceInformationIsMissing() { var testCase = Mocks.TestCase <ClassWithSingleTest>(nameof(ClassWithSingleTest.TestMethod)); framework.ReportDiscoveredTestCase_Public(testCase, includeSourceInformation: true, messageBus); var msg = Assert.Single(messageBus.Messages); var discoveryMsg = Assert.IsAssignableFrom <_TestCaseDiscovered>(msg); Assert.Equal("Source File", testCase.SourceInformation?.FileName); Assert.Equal(42, testCase.SourceInformation?.LineNumber); }