AppUpdater.Tests.UpdaterChefTests.Cook_WithAVersionAlreadyDownloaded_CreatesTheVersionDirectory C# (CSharp) Method

Cook_WithAVersionAlreadyDownloaded_CreatesTheVersionDirectory() private method

        public void Cook_WithAVersionAlreadyDownloaded_CreatesTheVersionDirectory()
        {
            localStructureManager.Stub(x => x.HasVersionFolder("2.0.0")).Return(true);
            UpdateRecipe updateRecipe = new UpdateRecipe("2.0.0", "1.0.0", new UpdateRecipeFile[0]);
            updaterChef.Cook(updateRecipe);

            localStructureManager.AssertWasCalled(x => x.DeleteVersionDir("2.0.0"));
        }