Exemplo n.º 1
0
            public SharedTestState()
            {
                RepoDirectories = new RepoDirectoriesProvider();

                var localizedFixture = new TestProjectFixture("LocalizedApp", RepoDirectories);

                localizedFixture
                .EnsureRestoredForRid(localizedFixture.CurrentRid)
                .PublishProject(runtime: localizedFixture.CurrentRid);

                var publishFixture = new TestProjectFixture("StandaloneApp", RepoDirectories);

                publishFixture
                .EnsureRestoredForRid(publishFixture.CurrentRid)
                .PublishProject(runtime: publishFixture.CurrentRid);

                var fwPublishedFixture = new TestProjectFixture("PortableApp", RepoDirectories);

                fwPublishedFixture
                .EnsureRestored()
                .PublishProject();

                StandaloneAppFixture_Localized         = localizedFixture;
                StandaloneAppFixture_Published         = publishFixture;
                FrameworkDependentAppFixture_Published = fwPublishedFixture;
            }
Exemplo n.º 2
0
            public SharedTestState()
            {
                RepoDirectories = new RepoDirectoriesProvider();
                TestFixture     = PreparePublishedSelfContainedTestProject("HammerServiceApp");

                ServiceFixture = new TestProjectFixture("ServicedLocation", RepoDirectories, assemblyName: "Location");
                ServiceFixture
                .EnsureRestored(RepoDirectories.CorehostPackages)
                .PublishProject(outputDirectory: BundleHelper.GetPublishPath(ServiceFixture));
            }
        public void Muxer_activation_of_dotnet_test_XUnit_on_Standalone_Test_App_Succeeds()
        {
            var standaloneTestAppFixture = new TestProjectFixture("StandaloneTestApp", RepoDirectories);

            standaloneTestAppFixture
            .EnsureRestored(RepoDirectories.CorehostPackages, RepoDirectories.CorehostDummyPackages)
            .BuildProject(runtime: standaloneTestAppFixture.CurrentRid);

            ActivateDotnetTestXunitOnTestProject(RepoDirectories, standaloneTestAppFixture);
        }
Exemplo n.º 4
0
        public void Muxer_activation_of_dotnet_test_XUnit_on_Portable_Test_App_Succeeds()
        {
            using (var portableTestAppFixture = new TestProjectFixture("PortableTestApp", RepoDirectories))
            {
                portableTestAppFixture
                .EnsureRestored()
                .BuildProject();

                ActivateDotnetTestXunitOnTestProject(RepoDirectories, portableTestAppFixture);
            }
        }
Exemplo n.º 5
0
            public SharedTestState()
            {
                RepoDirectories = new RepoDirectoriesProvider();
                TestFixture     = new TestProjectFixture("HammerServiceApp", RepoDirectories);
                TestFixture
                .EnsureRestoredForRid(TestFixture.CurrentRid, RepoDirectories.CorehostPackages)
                .PublishProject(runtime: TestFixture.CurrentRid,
                                outputDirectory: BundleHelper.GetPublishPath(TestFixture));

                ServiceFixture = new TestProjectFixture("ServicedLocation", RepoDirectories, assemblyName: "Location");
                ServiceFixture
                .EnsureRestored(RepoDirectories.CorehostPackages)
                .PublishProject(outputDirectory: BundleHelper.GetPublishPath(ServiceFixture));
            }
Exemplo n.º 6
0
        static GivenThatICareAboutStandaloneAppActivation()
        {
            RepoDirectories = new RepoDirectoriesProvider();

            var buildFixture = new TestProjectFixture("StandaloneApp", RepoDirectories);

            buildFixture
            .EnsureRestored(RepoDirectories.CorehostPackages, RepoDirectories.CorehostDummyPackages)
            .BuildProject(runtime: buildFixture.CurrentRid);

            var publishFixture = new TestProjectFixture("StandaloneApp", RepoDirectories);

            publishFixture
            .EnsureRestored(RepoDirectories.CorehostPackages, RepoDirectories.CorehostDummyPackages)
            .PublishProject(runtime: publishFixture.CurrentRid);

            ReplaceTestProjectOutputHostInTestProjectFixture(buildFixture);

            PreviouslyBuiltAndRestoredStandaloneTestProjectFixture     = buildFixture;
            PreviouslyPublishedAndRestoredStandaloneTestProjectFixture = publishFixture;
        }