test(batch0): port account/auth/options implementable tests

This commit is contained in:
Joseph Doherty
2026-02-28 04:39:13 -05:00
parent 564b91ded1
commit 27bbd63ce2
5 changed files with 53 additions and 51 deletions

View File

@@ -16,6 +16,9 @@ public sealed class AuthHandlerTests
};
AuthHandler.ValidateNoAuthUser(opts, "alice").ShouldBeNull();
var missingUser = AuthHandler.ValidateNoAuthUser(opts, "bob");
missingUser.ShouldNotBeNull();
missingUser!.Message.ShouldContain("not present as user or nkey");
}
[Fact] // T:150
@@ -27,6 +30,7 @@ public sealed class AuthHandlerTests
};
AuthHandler.ValidateNoAuthUser(opts, "NKEY1").ShouldBeNull();
AuthHandler.ValidateNoAuthUser(opts, "NKEY2").ShouldNotBeNull();
}
[Fact] // T:152