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