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(); }); }