Example #1
0
        public void DivI1I1([I1] sbyte a, [I1NotZero] sbyte b)
        {
            if (a == sbyte.MinValue && b == -1)
            {
                Assert.Inconclusive("TODO: Overflow exception not implemented");
            }

            Assert.AreEqual(Int8Tests.DivI1I1(a, b), Run <int>("Mosa.Test.Collection", "Int8Tests", "DivI1I1", a, b));
        }
Example #2
0
        public void DivI1I1(sbyte a, sbyte b)
        {
            if (b == 0)
            {
                return;
            }

            Assert.Equal(Int8Tests.DivI1I1(a, b), Run <int>("Mosa.UnitTest.Collection.Int8Tests.DivI1I1", a, b));
        }
Example #3
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 private void DivI1I1DivideByZeroException(sbyte a)
 {
     Assert.Equal(Int8Tests.DivI1I1(a, 0), Run <int>("Mosa.UnitTest.Collection.Int8Tests.DivI1I1", a, (sbyte)0));
 }