public void SupportsByte() { var lib = new TestLib.PrimitiveOperations(); foreach (var i in new Byte[] { 0, 1, 10, Byte.MaxValue, Byte.MinValue }) { Assert.AreEqual((Byte) ~(i + 1), lib.U8(i)); } }
public void SupportsInt64() { var lib = new TestLib.PrimitiveOperations(); foreach (var i in new Int64[] { 0, 1, 10, Int64.MaxValue, Int64.MinValue }) { Assert.AreEqual((Int64) ~(i + 1), lib.I64(i)); } }
public void SupportsUInt16() { var lib = new TestLib.PrimitiveOperations(); foreach (var i in new UInt16[] { 0, 1, 10, UInt16.MaxValue, UInt16.MinValue }) { Assert.AreEqual((UInt16) ~(i + 1), lib.U16(i)); } }