public void ImplicitInt32OverflowConversion() { Assert.IsTrue( _int32OverflowData.All( value => { try { InteropByte interopByte = value; return(false); } catch (OverflowException) { return(true); } })); }
public void ImplicitInt32Conversion() { Assert.IsTrue( _int32Data.All( value => { InteropByte interopByte = value; return(value == interopByte); })); }
public void EqualsTest() { var data = new Int16[, ] { { 0, 0 }, { -1, -1 }, { 1, 1 } }; var length = data.GetLength(0); for (var i = 0; i < length; i++) { InteropByte interopByte = data[i, 0]; InteropByte interopByte2 = data[i, 1]; Assert.IsTrue(interopByte.Equals(interopByte2)); } }