Resolve all 46 low-severity architecture review findings

This commit is contained in:
Joseph Doherty
2026-09-09 22:56:36 -04:00
parent fef3e7675f
commit 9ee402bbcd
139 changed files with 2621 additions and 1082 deletions
@@ -10,6 +10,20 @@ namespace ZB.MOM.WW.ScadaBridge.SiteRuntime.Tests.Scripts;
/// </summary>
public class ScriptExecutionSchedulerTests
{
[Fact]
public async Task Scheduler_DoesNotInlineOnAnotherSchedulersWorker()
{
using var first = new ScriptExecutionScheduler(1);
using var second = new ScriptExecutionScheduler(1);
await Task.Factory.StartNew(() =>
{
var firstThread = Environment.CurrentManagedThreadId;
var nested = new Task<int>(() => Environment.CurrentManagedThreadId);
nested.RunSynchronously(second);
Assert.NotEqual(firstThread, nested.Result);
}, CancellationToken.None, TaskCreationOptions.None, first);
}
[Fact]
public async Task Scheduler_RunsWork_OffTheThreadPool()
{