public void DataDiscovererReturningNullYieldsSingleTheoryTestCase() { var discoverer = TestableTheoryDiscoverer.Create(); var theoryAttribute = Mocks.TheoryAttribute(); var dataAttribute = Mocks.DataAttribute(); var testMethod = Mocks.TestMethod(methodAttributes: new[] { theoryAttribute, dataAttribute }); var testCases = discoverer.Discover(discoveryOptions, testMethod, theoryAttribute); var testCase = Assert.Single(testCases); var theoryTestCase = Assert.IsType <XunitTheoryTestCase>(testCase); Assert.Equal("MockType.MockMethod", theoryTestCase.DisplayName); }