public void the_file_exists_and_the_open_flag_is_true() { theManifestFileExists(); theInput.OpenFlag = true; execute(); MockFor <IFileSystem>().AssertWasCalled(x => FileSystemExtensions.LaunchEditor(x, theInput.AppFolder, PackageManifest.FILE)); }
private void theManifestFileExists() { MockFor <IFileSystem>().Stub(x => FileSystemExtensions.FileExists(x, theInput.AppFolder, PackageManifest.FILE)).Return(true); MockFor <IFileSystem>().Stub(x => FileSystemExtensions.LoadFromFile <PackageManifest>(x, theInput.AppFolder, PackageManifest.FILE)).Return(theManifest); }
private void theManifestFileDoesNotExist() { MockFor <IFileSystem>().Stub(x => FileSystemExtensions.FileExists(x, theInput.AppFolder, PackageManifest.FILE)).Return(false); }