Beispiel #1
0
        public void ConvertFromSuccessTest()
        {
            var c  = new StringBytesArrayTypeConverter();
            var r2 = c.ConvertFrom("XXXX") as byte[];
            var r3 = Convert.FromBase64String("XXXX");

            Assert.AreEqual(r2.Length, r3.Length);
            for (var i = 0; i < r2.Length; i++)
            {
                Assert.AreEqual(r2[i], r3[i]);
            }
        }
Beispiel #2
0
        public void ConvertFromInt()
        {
            var c = new StringBytesArrayTypeConverter();

            c.ConvertFrom(24);
        }