refactor(app): compose settings and developer tools
This commit is contained in:
parent
60a1698ce7
commit
cd7b519f78
24 changed files with 2073 additions and 333 deletions
|
|
@ -81,6 +81,31 @@ public sealed class RuntimeSettingsControllerTests
|
|||
controller.BindRuntimeTargets(new FakeRuntimeTargets(events)));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ViewModelBindingReleasesOnlyItsExpectedInstance()
|
||||
{
|
||||
var controller = CreateController();
|
||||
using InputDispatcher dispatcher = CreateDispatcher();
|
||||
RuntimeSettingsViewModelBinding first = controller.CreateViewModelBinding(
|
||||
new KeyBindings(),
|
||||
dispatcher,
|
||||
static _ => { });
|
||||
|
||||
first.Dispose();
|
||||
RuntimeSettingsViewModelBinding second = controller.CreateViewModelBinding(
|
||||
new KeyBindings(),
|
||||
dispatcher,
|
||||
static _ => { });
|
||||
first.Dispose();
|
||||
|
||||
Assert.Throws<InvalidOperationException>(() =>
|
||||
controller.CreateViewModelBinding(
|
||||
new KeyBindings(),
|
||||
dispatcher,
|
||||
static _ => { }));
|
||||
second.Dispose();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void StartupRetryResumesAfterLastSuccessfulStage()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue