public void TestInsert() { using (var list = new SList <OpaqueInt> ()) { Assume.That(list.Length, Is.EqualTo(0)); list.Insert(null, 0); Assert.That(list.Length, Is.EqualTo(1)); } Utility.AssertNoGLibLog(); }
/// <summary> /// Caches the command on the terminal data. /// This will enable the user to up/down typed commands. /// </summary> public static void CacheCommand(TerminalData data, string command) { SList.Insert(data.CommandCache, command, 0); }