コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
 //[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));
 }
コード例 #4
0
ファイル: Int32Fixture.cs プロジェクト: mlintell/MOSA-Project
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 private void DivI4I4DivideByZeroException(int a)
 {
     Assert.Equal(Int32Tests.DivI4I4(a, 0), Run <int>("Mosa.UnitTest.Collection.Int32Tests.DivI4I4", a, 0));
 }