ConsoleCommandManagerTests ExecuteCommand Method Delta Engine Documentation

Namespace: DeltaEngine.Platforms.Tests
Assembly: DeltaEngine.Platforms.Tests (in DeltaEngine.Platforms.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ExecuteCommand()
Examples

[Test]
public void ExecuteUnknownCommand()
{
    string result = consoleCommands.ExecuteCommand("NotRegistered");
    Assert.AreEqual("Error: Unknown console command 'NotRegistered'", result);
}
[Test]
public void ExecuteCommand()
{
    Assert.AreEqual("Result: '3'", consoleCommands.ExecuteCommand("AddInts 1 2"));
    Assert.AreEqual("Result: '3.5'", consoleCommands.ExecuteCommand("AddFloats 1.2 2.3"));
}
[Test]
public void ExecuteEmptyCommand()
{
    string result = consoleCommands.ExecuteCommand("");
    Assert.AreEqual("", result);
}
See Also