protected void WithDiscovery(Action action)
        {
            var project  = Substitute.For <IProject>();
            var provider = Substitute.For <IUnitTestProvider>();

            var target = new ExplorationTarget(project, TargetFrameworkId.Default, provider);
            var source = new UnitTestElementSource(UnitTestElementOrigin.Source, target);

            using (DiscoveryContext.As(source))
            {
                action();
            }
        }