Parameters
- name
Library/Library.Test/TestCmdInterpreter.cs
C# | Copy Code |
---|---|
CommandInterpreter ci = new CommandInterpreter(DefaultCommands.Help, new TestCommands()); string helptext = ci.GetHtmlHelp(null); Assert.IsTrue(0 == helptext.IndexOf("<html>")); Assert.IsTrue(helptext.Contains("COMMAND")); Assert.IsTrue(helptext.IndexOf("SOMEDATA",StringComparison.OrdinalIgnoreCase) >= 0); |
VB.NET | Copy Code |
---|---|
Dim ci As New CommandInterpreter(DefaultCommands.Help, New TestCommands()) Dim helptext As String = ci.GetHtmlHelp(Nothing) Assert.IsTrue(0 = helptext.IndexOf("<html>")) Assert.IsTrue(helptext.Contains("COMMAND")) Assert.IsTrue(helptext.IndexOf("SOMEDATA", StringComparison.OrdinalIgnoreCase) >= 0) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
CommandInterpreter ClassCommandInterpreter Members