public void DefinedFriendlyNamesAreAvailable() { StandardCommandMap cm = new StandardCommandMap(); cm.Load(@"Commands\commandmap.Simple.xml"); Assert.Equal("FriendlyIncludedCommand", cm.GetFriendlyName("IncludedCommand")); Assert.Equal("FriendlyCommandWithMissingInclude", cm.GetFriendlyName("CommandWithMissingInclude")); }
public void DefaultFriendlyNamesIfUnspecified() { StandardCommandMap cm = new StandardCommandMap(); cm.Load(@"Commands\commandmap.Simple.xml"); Assert.Equal("CommandWithMissingFriendly", cm.GetFriendlyName("CommandWithMissingFriendly")); }
public void WhitespacesInFriendlyNameAreTrimmed() { StandardCommandMap cm = new StandardCommandMap(); cm.Load(@"Commands\commandmap.Simple.xml"); Assert.Equal("FriendlyNameWithWhitespaces", cm.GetFriendlyName("CommandWithNonstandardFriendly")); }