Beispiel #1
0
        public void RemI4I4([I4] int a, [I4NotZero] int b)
        {
            if (a == int.MinValue && b == -1)
            {
                Assert.Inconclusive("TODO: Overflow exception not implemented");
            }

            Assert.AreEqual(Int32Tests.RemI4I4(a, b), Run <int>("Mosa.Test.Collection", "Int32Tests", "RemI4I4", a, b));
        }
Beispiel #2
0
        public void RemI4I4(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.RemI4I4(a, b), Run <int>("Mosa.Test.Collection.Int32Tests.RemI4I4", a, b));
        }
Beispiel #3
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 public void RemI4I4DivideByZeroException(int a)
 {
     Assert.Equal(Int32Tests.RemI4I4(a, (int)0), Run <int>("Mosa.Test.Collection.Int32Tests.RemI4I4", a, (int)0));
 }
Beispiel #4
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 private void RemI4I4DivideByZeroException(int a)
 {
     Assert.Equal(Int32Tests.RemI4I4(a, 0), Run <int>("Mosa.UnitTest.Collection.Int32Tests.RemI4I4", a, 0));
 }