public void ReturnsImporterResults( FilePath existingPath, IPipelineSettings settings, PipelineProfilesProvider sut) { sut.ProfileDefinitionPathProvider.Path.Returns(existingPath); sut.PipelineSettingsImporter.Import(default !).ReturnsForAnyArgs(settings);
public void PassesDefinitionPathToImporter( FilePath existingPath, PipelineProfilesProvider sut) { sut.ProfileDefinitionPathProvider.Path.Returns(existingPath); sut.Get(); sut.PipelineSettingsImporter.Received(1).Import(existingPath); }
public void ProfileDefinitionPathMissingThrows( FilePath missingPath, PipelineProfilesProvider sut) { sut.ProfileDefinitionPathProvider.Path.Returns(missingPath); Assert.Throws <FileNotFoundException>(() => { sut.Get(); }); }