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