Exemple #1
0
 public void PassesDefinitionPathToImporter(
     FilePath existingPath,
     PipelineProfilesProvider sut)
 {
     sut.ProfileDefinitionPathProvider.Path.Returns(existingPath);
     sut.Get();
     sut.PipelineSettingsImporter.Received(1).Import(existingPath);
 }
Exemple #2
0
 public void ProfileDefinitionPathMissingThrows(
     FilePath missingPath,
     PipelineProfilesProvider sut)
 {
     sut.ProfileDefinitionPathProvider.Path.Returns(missingPath);
     Assert.Throws <FileNotFoundException>(() =>
     {
         sut.Get();
     });
 }