feat: complete legacy UI and playout parity migration

This commit is contained in:
2026-07-15 13:11:38 +09:00
parent f14800656b
commit 6e0c275fdd
108 changed files with 43738 additions and 560 deletions

View File

@@ -0,0 +1,29 @@
using MBN_STOCK_WEBVIEW.LegacyBridge;
namespace MBN_STOCK_WEBVIEW.LegacyBridge.Tests;
public sealed class LegacySectionBatchBridgeTests
{
[Theory]
[InlineData("activate-industry-section", typeof(LegacyActivateIndustrySectionIntent))]
[InlineData("activate-comparison-section", typeof(LegacyActivateComparisonSectionIntent))]
public void SectionBatchIntentAcceptsOnlyOneBoundedOpaqueIndex(
string type,
Type expectedType)
{
Assert.True(LegacyBridgeProtocol.TryParseIntent(
$"{{\"type\":\"{type}\",\"payload\":{{\"sectionIndex\":1}}}}",
out var intent,
out _));
Assert.IsType(expectedType, intent);
Assert.False(LegacyBridgeProtocol.TryParseIntent(
$"{{\"type\":\"{type}\",\"payload\":{{\"sectionIndex\":64}}}}",
out _,
out _));
Assert.False(LegacyBridgeProtocol.TryParseIntent(
$"{{\"type\":\"{type}\",\"payload\":{{\"sectionIndex\":1,\"actions\":[]}}}}",
out _,
out _));
}
}