feat(launcher): stabilize prepared content updates
This commit is contained in:
parent
f160f3fee1
commit
af9327a17b
42 changed files with 3706 additions and 147 deletions
|
|
@ -152,6 +152,27 @@ public sealed class LauncherUpdateViewModelTests
|
|||
Assert.Equal(0, updater.StageCalls);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AnotherStartupQuestionDefersButDoesNotLoseTheUpdatePrompt()
|
||||
{
|
||||
var updater = new FakeUpdater { ClientUpdateAvailable = true };
|
||||
bool canOpen = false;
|
||||
using var viewModel = new LauncherUpdateViewModel(
|
||||
updater,
|
||||
new ImmediateUiDispatcher(),
|
||||
() => { },
|
||||
canOpen: () => canOpen,
|
||||
canMutate: () => true);
|
||||
|
||||
await viewModel.StartupCheckAsync();
|
||||
Assert.False(viewModel.IsOpen);
|
||||
|
||||
canOpen = true;
|
||||
viewModel.TryOpenPendingUpdate();
|
||||
|
||||
Assert.True(viewModel.IsOpen);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task UpdatingIsRefusedWhileASessionIsRunning()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue