Esempio n. 1
0
        public void WriteArray_ColorNormal()
        {
            ResetStream();
            var init = new Color[] { Color.Gainsboro, Color.DarkBlue };

            bion.WriteArray(bionWriter, init);
            ResetStream();

            var final = (Color[])bion.ReadArray(bionReader, typeof(Color[]));

            AssertionHelper.AssetArrayEqual <Color>(init, final);
        }
Esempio n. 2
0
        public void WriteArray_DateTimeNormal()
        {
            ResetStream();
            var init = new DateTime[] { DateTime.MinValue, DateTime.MaxValue, DateTime.Now };

            bion.WriteArray(bionWriter, init);
            ResetStream();

            var final = (DateTime[])bion.ReadArray(bionReader, typeof(DateTime[]));

            AssertionHelper.AssetArrayEqual <DateTime>(init, final);
        }
Esempio n. 3
0
        /// <summary>
        /// ArrayList is not supported, IGNORE this test
        /// </summary>
        public void WriteArray_ArrayListNormal()
        {
            ResetStream();
            var init = new ArrayList {
                new Version(1, 2, 3, 4), Color.DarkBlue, "test1", 99.200022
            };

            bion.WriteArray(bionWriter, init);
            ResetStream();

            var final = (ArrayList)bion.ReadArray(bionReader, typeof(ArrayList));

            AssertionHelper.AssetArrayEqual(init, final);
        }