Beispiel #1
0
 public void ImplicitConversion()
 {
     Assert.IsTrue(
         _int32Data.All(
             value =>
     {
         InteropInt32 interopInt32 = value;
         return(value == interopInt32);
     }));
 }
Beispiel #2
0
        public void EqualsTest()
        {
            var data = new Int32[, ] {
                { 0, 0 }, { -1, -1 }, { 1, 1 }
            };
            var length = data.GetLength(0);

            for (var i = 0; i < length; i++)
            {
                InteropInt32 interopInt32  = data[i, 0];
                InteropInt32 interopInt322 = data[i, 1];
                Assert.IsTrue(interopInt32.Equals(interopInt322));
            }
        }