Exemplo n.º 1
0
        static void DebugAr()
        {
            var Sr = Ar_Check.Serialize().Deserialize(Ar_Check);

            if (Sr.Length != Ar_Check.Length)
            {
                throw new Exception();
            }

            if (Sr.AsEnumerable().Count() != Ar_Check.Length)
            {
                throw new Exception();
            }

            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++;
            }

            x = 0;
            foreach (var Item in Ar_True)
            {
                if (Item != Sr[x])
                {
                    throw new Exception();
                }
                x++;
            }
        }
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++;
                }
            }