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));
        }
Exemple #2
0
        public void RemI2I2(short a, short b)
        {
            if (b == 0)
            {
                return;
            }

            Assert.Equal(Int16Tests.RemI2I2(a, b), Run <int>("Mosa.UnitTest.Collection.Int16Tests.RemI2I2", a, b));
        }
Exemple #3
0
 public void CompI2(short a)
 {
     Assert.Equal(Int16Tests.CompI2(a), Run <int>("Mosa.UnitTest.Collection.Int16Tests.CompI2", a));
 }
Exemple #4
0
 public void XorI2I2(short a, short b)
 {
     Assert.Equal(Int16Tests.XorI2I2(a, b), Run <int>("Mosa.UnitTest.Collection.Int16Tests.XorI2I2", a, b));
 }
Exemple #5
0
 public void RetI2(short a)
 {
     Assert.Equal(Int16Tests.RetI2(a), Run <short>("Mosa.UnitTest.Collection.Int16Tests.RetI2", a));
 }
Exemple #6
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 private void RemI2I2DivideByZeroException(short a)
 {
     Assert.Equal(Int16Tests.RemI2I2(a, 0), Run <int>("Mosa.UnitTest.Collection.Int16Tests.RemI2I2", a, (short)0));
 }
Exemple #7
0
 public void LdelemaI2(int index, short value)
 {
     Assert.Equal(Int16Tests.Ldelema(index, value), Run <short>("Mosa.UnitTest.Collection.Int16Tests.Ldelema", index, value));
 }
Exemple #8
0
 public void CgeI2I2(short a, short b)
 {
     Assert.Equal(Int16Tests.CgeI2I2(a, b), Run <bool>("Mosa.UnitTest.Collection.Int16Tests.CgeI2I2", a, b));
 }
Exemple #9
0
 public void ShiftRightI2I2(short a, byte b)
 {
     Assert.Equal(Int16Tests.ShiftRightI2I2(a, b), Run <int>("Mosa.UnitTest.Collection.Int16Tests.ShiftRightI2I2", a, b));
 }
Exemple #10
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 public void DivI2I2DivideByZeroException(short a)
 {
     Assert.Equal(Int16Tests.DivI2I2(a, (short)0), Run <int>("Mosa.Test.Collection.Int16Tests.DivI2I2", a, (short)0));
 }
 public void XorI2_I2([I2] short a, [I2] short b)
 {
     Assert.AreEqual(Int16Tests.XorI2I2(a, b), Run <int>("Mosa.Test.Collection", "Int16Tests", "XorI2I2", a, b));
 }
 public void RetI2([I2] short a)
 {
     Assert.AreEqual(Int16Tests.RetI2(a), Run <short>("Mosa.Test.Collection", "Int16Tests", "RetI2", a));
 }
 public void RemI2_I2DivideByZeroException([I2] short a)
 {
     Assert.AreEqual(Int16Tests.RemI2I2(a, (short)0), Run <int>("Mosa.Test.Collection", "Int16Tests", "RemI2I2", a, (short)0));
 }
 public void RemI2_I2([I2] short a, [I2NotZero] short b)
 {
     Assert.AreEqual(Int16Tests.RemI2I2(a, b), Run <int>("Mosa.Test.Collection", "Int16Tests", "RemI2I2", a, b));
 }
 public void CgeI2_I2([I2] short a, [I2] short b)
 {
     Assert.AreEqual(Int16Tests.CgeI2I2(a, b), Run <bool>("Mosa.Test.Collection", "Int16Tests", "CgeI2I2", a, b));
 }