public void DivI8I8([I8] long a, [I8NotZero] long b) { if (a == long.MinValue && b == -1) { Assert.Inconclusive("TODO: Overflow exception not implemented"); } Assert.AreEqual(Int64Tests.DivI8I8(a, b), Run <long>("Mosa.Test.Collection", "Int64Tests", "DivI8I8", 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)); }
//[Theory] //[ExpectedException(typeof(DivideByZeroException))] public void DivI8I8DivideByZeroException(long a) { Assert.Equal(Int64Tests.DivI8I8(a, 0), Run <long>("Mosa.UnitTest.Collection.Int64Tests.DivI8I8", a, (long)0)); }