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
|
|
@ -12,6 +12,20 @@ namespace AcDream.UI.Abstractions.Tests.Panels.Chat;
|
|||
/// </summary>
|
||||
public sealed class ChatVMLastTellSenderTests
|
||||
{
|
||||
[Fact]
|
||||
public void DisposeDetachesTranscriptSubscriptionExactlyOnce()
|
||||
{
|
||||
var log = new ChatLog();
|
||||
var vm = new ChatVM(log);
|
||||
log.OnTellReceived("Before", "ping", 0x5000_0001u);
|
||||
|
||||
vm.Dispose();
|
||||
vm.Dispose();
|
||||
log.OnTellReceived("After", "pong", 0x5000_0002u);
|
||||
|
||||
Assert.Equal("Before", vm.LastIncomingTellSender);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void LastIncomingTellSender_StartsNull()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue