public void LocationTypeDetectionStepDetectsWorkspaceLaunchUri() { string testUri = @"logjoint:?t=workspace&uri=https://workspaces/123"; LaunchUriData tmp; appLaunch.TryParseLaunchUri(new Uri(testUri), out tmp).Returns(callInfo => { callInfo[1] = new LaunchUriData() { WorkspaceUri = "https://workspaces/123" }; return(true); }); RunChain(new LocationTypeDetectionStep( new PreprocessingStepParams(testUri), preprocessingStepsFactory)); preprocessingStepsFactory.Received().CreateOpenWorkspaceStep( Arg.Is <PreprocessingStepParams>(p => p.Location == @"https://workspaces/123")); }
public void LocationTypeDetectionStepDetectsSingleLogLaunchUri() { string testUri = @"logjoint:?t=log&uri=https://logz/123"; LaunchUriData tmp; appLaunch.TryParseLaunchUri(new Uri(testUri), out tmp).Returns(callInfo => { callInfo[1] = new LaunchUriData() { SingleLogUri = "https://logz/123" }; return(true); }); RunChain(new LocationTypeDetectionStep( new PreprocessingStepParams(testUri), preprocessingStepsFactory)); preprocessingStepsFactory.Received().CreateDownloadingStep( Arg.Is <PreprocessingStepParams>(p => p.Uri == @"https://logz/123")); }