* fixe * Save work. * Rune-aware parser. * oogh * pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests pass tests * Publicizes a lot of common generic commands, so custom toolshed envs can include them. * i think i might implode * Tests. * a * b * awa --------- Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
20 lines
551 B
C#
20 lines
551 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Robust.Shared.Toolshed;
|
|
|
|
namespace Content.IntegrationTests.Tests.Toolshed;
|
|
|
|
[TestFixture]
|
|
public sealed class AdminTest : ToolshedTest
|
|
{
|
|
[Test]
|
|
public async Task AllCommandsHavePermissions()
|
|
{
|
|
await Server.WaitAssertion(() =>
|
|
{
|
|
Assert.That(InvokeCommand("cmd:list where { acmd:perms isnull }", out var res));
|
|
Assert.That((IEnumerable<CommandSpec>) res, Is.Empty, "All commands must have admin permissions set up.");
|
|
});
|
|
}
|
|
}
|