test(galaxy): assert current Write/Subscribe guard text (PR 4.4/4.W refs removed in Phase 0 b4af9e7f)

This commit is contained in:
Joseph Doherty
2026-06-15 15:03:38 -04:00
parent db22c2b19a
commit 8899d6e091
2 changed files with 4 additions and 4 deletions
@@ -245,7 +245,7 @@ public sealed class GalaxyDriverSubscribeTests
using var driver = new GalaxyDriver("g", Opts());
var ex = await Should.ThrowAsync<NotSupportedException>(() =>
driver.SubscribeAsync(["x"], TimeSpan.FromSeconds(1), CancellationToken.None));
ex.Message.ShouldContain("PR 4.W");
ex.Message.ShouldContain("GalaxyDriver.SubscribeAsync requires");
}
/// <summary>Verifies subscription falls back to configured interval when zero is passed.</summary>
@@ -188,15 +188,15 @@ public sealed class GalaxyDriverWriteTests
writer.Calls.ShouldBeEmpty();
}
/// <summary>Verifies that WriteAsync throws when no writer is configured, referencing PR 4.4.</summary>
/// <summary>Verifies that WriteAsync throws a clear guard error when no writer is configured.</summary>
[Fact]
public async Task WriteAsync_NoWriter_Throws_PointingAtPR44()
public async Task WriteAsync_NoWriter_Throws()
{
var driver = new GalaxyDriver("g", Opts());
var ex = await Should.ThrowAsync<NotSupportedException>(() =>
driver.WriteAsync([new WriteRequest("x", 1)], CancellationToken.None));
ex.Message.ShouldContain("PR 4.4");
ex.Message.ShouldContain("GalaxyDriver.WriteAsync requires");
}
/// <summary>Verifies that WriteAsync throws ObjectDisposedException after the driver is disposed.</summary>