Exemplo n.º 1
0
        static void Main(string[] args)
        {
            //var xar = new Monsajem_Incs.Collection.Array.TreeBased.Array<string>();

            //xar.ChangedNextSequence = (c) =>
            //{
            //    c.ToString();
            //};


            //xar.Insert("0", 0);
            //xar.Insert("1", 1);
            //xar.Insert("2", 2);
            //xar.Insert("3", 3);
            //xar.Insert("4", 4);
            //xar.Insert("5", 5);
            //xar.Insert("6", 6);
            //xar.Insert("7", 7);

            //xar.DeleteByPosition(3);

            //ReadPerformaceTest();
            //PerformaceTest();
            //try
            //{

            System.IO.File.Delete(Environment.CurrentDirectory + "\\DB");

            var Sr = System.IO.File.Open(Environment.CurrentDirectory + "\\DB", System.IO.FileMode.OpenOrCreate);

            var ar = new Monsajem_Incs.Collection.StreamCollection <string>(Sr);

            Ar_Check = ar;
            SafeTest();
            SafeTestBinary();
            //}
            //catch
            //{

            //}
            BugTest();
        }
Exemplo n.º 2
0
            static void CompareAr(string[] Ar_True, Monsajem_Incs.Collection.Array.Base.IArray <string> Ar_Check)
            {
                if (Ar_Check.AsEnumerable().Count() != Ar_Check.Length)
                {
                    throw new Exception();
                }

                int x = 0;

                foreach (var Item in Ar_Check)
                {
                    if (Item != Ar_True[x])
                    {
                        throw new Exception();
                    }
                    if (Item != Ar_Check[x])
                    {
                        throw new Exception();
                    }
                    x++;
                }
            }