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
|
|
@ -14,6 +14,22 @@ namespace AcDream.UI.Abstractions.Tests.Panels.Debug;
|
|||
/// </summary>
|
||||
public sealed class DebugVMTests
|
||||
{
|
||||
[Fact]
|
||||
public void DisposeDetachesEveryCombatSubscriptionExactlyOnce()
|
||||
{
|
||||
var combat = new CombatState();
|
||||
DebugVM vm = NewVm(combat);
|
||||
combat.OnKillerNotification("first", 1);
|
||||
Assert.Single(vm.CombatEvents);
|
||||
|
||||
vm.Dispose();
|
||||
vm.Dispose();
|
||||
combat.OnKillerNotification("second", 2);
|
||||
combat.OnAttackDone(3, 4);
|
||||
|
||||
Assert.Single(vm.CombatEvents);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Build a minimal <see cref="DebugVM"/> with safe defaults for every
|
||||
/// constructor source. Tests that don't care about a particular source
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue