示例#1
0
        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));
        }
示例#2
0
 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);
 }
示例#3
0
 private void theManifestFileDoesNotExist()
 {
     MockFor <IFileSystem>().Stub(x => FileSystemExtensions.FileExists(x, theInput.AppFolder, PackageManifest.FILE)).Return(false);
 }