Clean up existing tests to use our new internal classes

This commit is contained in:
Paul Betts
2014-08-08 13:32:44 +02:00
parent cedb12266d
commit 41cfc64e9d
7 changed files with 68 additions and 88 deletions

View File

@@ -20,7 +20,7 @@ namespace Squirrel
/// will return values from 0-100 and Complete, or Throw</param>
/// <returns>An UpdateInfo object representing the updates to install.
/// </returns>
Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates, Action<int> progress = null);
Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates = false, Action<int> progress = null);
/// <summary>
/// Download a list of releases into the local package directory.

View File

@@ -13,7 +13,7 @@ namespace Squirrel
{
public sealed partial class UpdateManager
{
class ApplyReleasesImpl : IEnableLogger
internal class ApplyReleasesImpl : IEnableLogger
{
// TODO: Kill this entire concept
readonly FrameworkVersion appFrameworkVersion = FrameworkVersion.Net45;
@@ -309,7 +309,7 @@ namespace Squirrel
});
}
async Task updateLocalReleasesFile()
internal async Task updateLocalReleasesFile()
{
await Task.Run(() => ReleaseEntry.BuildReleasesFile(Utility.PackageDirectoryForAppDir(rootAppDirectory)));
}

View File

@@ -11,7 +11,7 @@ namespace Squirrel
{
public sealed partial class UpdateManager
{
class CheckForUpdateImpl : IEnableLogger
internal class CheckForUpdateImpl : IEnableLogger
{
readonly string rootAppDirectory;

View File

@@ -10,7 +10,7 @@ namespace Squirrel
{
public sealed partial class UpdateManager
{
class DownloadReleasesImpl : IEnableLogger
internal class DownloadReleasesImpl : IEnableLogger
{
readonly string rootAppDirectory;

View File

@@ -41,7 +41,7 @@ namespace Squirrel
this.urlDownloader = urlDownloader ?? new FileDownloader();
}
public async Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates, Action<int> progress = null)
public async Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates = false, Action<int> progress = null)
{
var checkForUpdate = new CheckForUpdateImpl(rootAppDirectory);