示例#1
0
        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();
        }
示例#2
0
 /// <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);
 }