public void RemI8I8([I8] long a, [I8NotZero] long b) { if (a == long.MinValue && b == -1) { Assert.Inconclusive("TODO: Overflow exception not implemented"); } Assert.AreEqual(Int64Tests.RemI8I8(a, b), Run <long>("Mosa.Test.Collection", "Int64Tests", "RemI8I8", a, b)); }
public void DivI8I8(long a, long b) { if (a == long.MinValue && b == -1) { // Assert.Inconclusive("TODO: Overflow exception not implemented"); return; } if (b == 0) { return; } Assert.Equal(Int64Tests.DivI8I8(a, b), Run <long>("Mosa.UnitTest.Collection.Int64Tests.DivI8I8", a, b)); }
public void RemI8I8(long a, long b) { if (b == 0) { return; } // C# can't handle this case and throws an OverflowException, but MOSA can handle it if (a == -9223372036854775808 && b == -1) { Assert.Equal(0, Run <long>("Mosa.UnitTest.Collection.Int64Tests.RemI8I8", a, b)); return; } Assert.Equal(Int64Tests.RemI8I8(a, b), Run <long>("Mosa.UnitTest.Collection.Int64Tests.RemI8I8", a, b)); }
public void OrI8I8(long a, long b) { Assert.Equal(Int64Tests.OrI8I8(a, b), Run <long>("Mosa.UnitTest.Collection.Int64Tests.OrI8I8", a, b)); }
public void RetI8(long a) { Assert.Equal(Int64Tests.RetI8(a), Run <long>("Mosa.UnitTest.Collection.Int64Tests.RetI8", a)); }
//[Theory] //[ExpectedException(typeof(DivideByZeroException))] public void RemI8I8DivideByZeroException(long a) { Assert.Equal(Int64Tests.RemI8I8(a, 0), Run <long>("Mosa.UnitTest.Collection.Int64Tests.RemI8I8", a, (long)0)); }
public void LdelemaI8(int index, long value) { Assert.Equal(Int64Tests.Ldelema(index, value), Run <long>("Mosa.UnitTest.Collection.Int64Tests.Ldelema", index, value)); }
public void CgeI8I8(long a, long b) { Assert.Equal(Int64Tests.CgeI8I8(a, b), Run <bool>("Mosa.UnitTest.Collection.Int64Tests.CgeI8I8", a, b)); }
public void ShiftRightI8I8(long a, byte b) { Assert.Equal(Int64Tests.ShiftRightI8U1(a, b), Run <long>("Mosa.UnitTest.Collection.Int64Tests.ShiftRightI8U1", a, b)); }
public void CompI8(long a) { Assert.Equal(Int64Tests.CompI8(a), Run <long>("Mosa.Test.Collection.Int64Tests.CompI8", a)); }
public void OrI8I8([I8] long a, [I8] long b) { Assert.AreEqual(Int64Tests.OrI8I8(a, b), Run <long>("Mosa.Test.Collection", "Int64Tests", "OrI8I8", a, b)); }
public void RetI8([I8] long a) { Assert.AreEqual(Int64Tests.RetI8(a), Run <long>("Mosa.Test.Collection", "Int64Tests", "RetI8", a)); }
public void CgeI8I8([I8] long a, [I8] long b) { Assert.AreEqual(Int64Tests.CgeI8I8(a, b), Run <bool>("Mosa.Test.Collection", "Int64Tests", "CgeI8I8", a, b)); }