public void DivI2I2(short a, short b) { if (b == 0) { return; } Assert.Equal(Int16Tests.DivI2I2(a, b), Run <int>("Mosa.UnitTest.Collection.Int16Tests.DivI2I2", a, b)); }
public void DivI2_I2([I2] short a, [I2NotZero] short b) { if (a == short.MinValue && b == -1) { Assert.Inconclusive("TODO: Overflow exception not implemented"); } Assert.AreEqual(Int16Tests.DivI2I2(a, b), Run <int>("Mosa.Test.Collection", "Int16Tests", "DivI2I2", a, b)); }
//[Theory] //[ExpectedException(typeof(DivideByZeroException))] private void DivI2I2DivideByZeroException(short a) { Assert.Equal(Int16Tests.DivI2I2(a, 0), Run <int>("Mosa.UnitTest.Collection.Int16Tests.DivI2I2", a, (short)0)); }