public void Create_Command() { var commands = new System.Collections.Generic.List<string>(); var test = new CommandString("testing", commands); Assert.Equal("testing", test.CommandText); Assert.Equal(commands, test.AdditionalCommands); }
public void GetSet_Key() { var test = Create(); var command = new CommandString("testing", new System.Collections.Generic.List<string>()); test.Add("test", command); Assert.True(test.Contains("test")); Assert.Equal(command, test.Get("test")); }
/// <summary> /// Adds a new cached command string /// </summary> /// <param name="key">The key.</param> /// <param name="value">The value.</param> /// <returns></returns> public CommandString Add(string key, CommandString value) { _commandCacheRunTime.TryAdd(key, value); return value; }