Пример #1
0
        public static TestUniverse SeedInitialSetup(this TestUniverse universe, IActivityMonitor m)
        {
            universe.UserHost.WorldStore.EnsureStackRepository(m, universe.StackBareGitPath, isPublic: true);

            TestUniverse.PlaceHolderSwapEverything(
                m: m,
                tempPath: universe.UniversePath,
                oldString: TestUniverse.PlaceHolderString,
                newString: universe.UniversePath
                );
            EnsureWorldOpened(universe, "CKTest-Build");
            return(universe);
        }
Пример #2
0
 public static TestUniverse SeedInitialSetup(this TestUniverse universe, IActivityMonitor m)
 {
     universe.UserHost.WorldStore.EnsureStackDefinition(
         m: m,
         stackName: "CKTest-Build",
         url: universe.StackBareGitPath,
         isPublic: true,
         mappedPath: universe.UserLocalDirectory
         );
     TestUniverse.PlaceHolderSwapEverything(
         m: m,
         tempPath: universe.UniversePath,
         oldString: TestUniverse.PlaceHolderString,
         newString: universe.UniversePath
         );
     universe.UserHost.WorldStore.PullAll(m).Should().BeFalse();  //The repo was previously cloned, pulling should do nothing.
     EnsureWorldOpened(universe, m, "CKTest-Build");
     return(universe);
 }