mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
15 lines
512 B
C#
15 lines
512 B
C#
|
|
using MinecraftClient.Scripting;
|
||
|
|
|
||
|
|
namespace MinecraftClient.Tests;
|
||
|
|
|
||
|
|
public sealed class CSharpRunnerTests
|
||
|
|
{
|
||
|
|
[Theory]
|
||
|
|
[InlineData("//using MinecraftClient.CommandHandler", "using MinecraftClient.CommandHandler;")]
|
||
|
|
[InlineData("//using MinecraftClient.CommandHandler;", "using MinecraftClient.CommandHandler;")]
|
||
|
|
public void NormalizeUsingDirectiveAddsMissingSemicolon(string directive, string expected)
|
||
|
|
{
|
||
|
|
Assert.Equal(expected, CSharpRunner.NormalizeUsingDirective(directive));
|
||
|
|
}
|
||
|
|
}
|