public void DivI4I4([I4] int a, [I4NotZero] int b) { if (a == int.MinValue && b == -1) { Assert.Inconclusive("TODO: Overflow exception not implemented"); } Assert.AreEqual(Int32Tests.DivI4I4(a, b), Run <int>("Mosa.Test.Collection", "Int32Tests", "DivI4I4", a, b)); }
public void DivI4I4(int a, int b) { if (a == int.MinValue && b == -1) { // Assert.Inconclusive("TODO: Overflow exception not implemented"); return; } if (b == 0) { return; } Assert.Equal(Int32Tests.DivI4I4(a, b), Run <int>("Mosa.Test.Collection.Int32Tests.DivI4I4", a, b)); }
//[Theory] //[ExpectedException(typeof(DivideByZeroException))] public void DivI4I4DivideByZeroException(int a) { Assert.Equal(Int32Tests.DivI4I4(a, (int)0), Run <int>("Mosa.Test.Collection.Int32Tests.DivI4I4", a, (int)0)); }
//[Theory] //[ExpectedException(typeof(DivideByZeroException))] private void DivI4I4DivideByZeroException(int a) { Assert.Equal(Int32Tests.DivI4I4(a, 0), Run <int>("Mosa.UnitTest.Collection.Int32Tests.DivI4I4", a, 0)); }