public void Simple_local_subscription() { var project = new ProjectDirectoryLoader(new FileSystem()).Load(".".ToFullPath().ParentDirectory().ParentDirectory()); using (var runner = new ProjectTestRunner(project)) { runner.RunAndAssertTest("Subscriptions/Simple local subscription"); } }
public void Go() { var loader = new ProjectDirectoryLoader(new FileSystem()); IProject project = loader.Load(FubuMvcPackageFacility.GetApplicationPath()); project.TimeoutInSeconds = 240; using (var runner = new ProjectTestRunner(project)) { runner.RunAndAssertTest("HealthMonitoring/An inactive task should get reassigned"); } }
public void load_a_project_from_a_project_directory() { var dir = ".".ToFullPath() .ParentDirectory().ParentDirectory() .ParentDirectory() .AppendPath("Storyteller.Gallery"); var input = new RunInput {Path = dir}; var loader = new ProjectDirectoryLoader(new FubuCore.FileSystem()).Load(input.Path); loader.ShouldNotBeNull(); loader.ProjectFolder.ShouldEqual(dir); loader.Name.ShouldEqual("Storyteller.Gallery"); }
public void use_web_config_if_it_exists_2() { fileSystem.WriteStringToFile("Foo".AppendPath("web.config"), "anything"); var project = new ProjectDirectoryLoader(new FileSystem()); project.Load("Foo") .ConfigurationFileName.ShouldEqual("Foo".AppendPath("web.config").ToFullPath()); }