예제 #1
0
        public void Clear()
        {
            var list   = new List <int>(Globals.Ints);
            var system = new S.List <int>(Globals.Ints);

            Assert.IsTrue(list.Count == Globals.Ints.Length);
            Comparer <int> .Compare(list, system);

            list.Clear();
            system.Clear();

            Assert.IsTrue(list.Count == 0);
            Comparer <int> .Compare(list, system);
        }
예제 #2
0
        public void Clear()
        {
            var vector = new Vector <string>(Globals.Strings);
            var system = new S.List <string>(Globals.Strings);

            Comparer <string> .Compare(vector, system);

            vector.Clear();
            system.Clear();

            Comparer <string> .Compare(vector, system);

            foreach (var i in Globals.Strings)
            {
                vector.Add(i);
                system.Add(i);

                Comparer <string> .Compare(vector, system);
            }

            Comparer <string> .Compare(vector, system);
        }