Beispiel #1
0
        public void RemU2U2(ushort a, ushort b)
        {
            if (b == 0)
            {
                return;
            }

            Assert.Equal(UInt16Tests.RemU2U2(a, b), Run <int>("Mosa.Test.Collection.UInt16Tests.RemU2U2", a, b));
        }
 public void CompU2([U2] ushort a)
 {
     Assert.AreEqual(UInt16Tests.CompU2(a), Run <int>("Mosa.Test.Collection", "UInt16Tests", "CompU2", a));
 }
 public void XorU2U2([U2] ushort a, [U2] ushort b)
 {
     Assert.AreEqual(UInt16Tests.XorU2U2(a, b), Run <int>("Mosa.Test.Collection", "UInt16Tests", "XorU2U2", a, b));
 }
 public void RetU2([U2] ushort a)
 {
     Assert.AreEqual(UInt16Tests.RetU2(a), Run <ushort>("Mosa.Test.Collection", "UInt16Tests", "RetU2", a));
 }
 public void RemU2U2DivideByZeroException([U2] ushort a)
 {
     Assert.AreEqual(UInt16Tests.RemU2U2(a, (ushort)0), Run <int>("Mosa.Test.Collection", "UInt16Tests", "RemU2U2", a, (ushort)0));
 }
 public void RemU2U2([U2] ushort a, [U2NotZero] ushort b)
 {
     Assert.AreEqual(UInt16Tests.RemU2U2(a, b), Run <int>("Mosa.Test.Collection", "UInt16Tests", "RemU2U2", a, b));
 }
 public void CgeU2U2([U2] ushort a, [U2] ushort b)
 {
     Assert.AreEqual(UInt16Tests.CgeU2U2(a, b), Run <bool>("Mosa.Test.Collection", "UInt16Tests", "CgeU2U2", a, b));
 }
 public void ShiftRightU2U2([U2] ushort a, [I1UpTo16] byte b)
 {
     Assert.AreEqual(UInt16Tests.ShiftRightU2U2(a, b), Run <int>("Mosa.Test.Collection", "UInt16Tests", "ShiftRightU2U2", a, b));
 }
Beispiel #9
0
 public void CompU2(ushort a)
 {
     Assert.Equal(UInt16Tests.CompU2(a), Run <int>("Mosa.Test.Collection.UInt16Tests.CompU2", a));
 }
Beispiel #10
0
 public void XorU2U2(ushort a, ushort b)
 {
     Assert.Equal(UInt16Tests.XorU2U2(a, b), Run <int>("Mosa.Test.Collection.UInt16Tests.XorU2U2", a, b));
 }
Beispiel #11
0
 public void RetU2(ushort a)
 {
     Assert.Equal(UInt16Tests.RetU2(a), Run <ushort>("Mosa.Test.Collection.UInt16Tests.RetU2", a));
 }
Beispiel #12
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 public void DivU2U2DivideByZeroException(ushort a)
 {
     Assert.Equal(UInt16Tests.DivU2U2(a, (ushort)0), Run <int>("Mosa.Test.Collection.UInt16Tests.DivU2U2", a, (ushort)0));
 }
Beispiel #13
0
 public void LdelemaU2(int index, ushort value)
 {
     Assert.Equal(UInt16Tests.Ldelema(index, value), Run <ushort>("Mosa.Test.Collection.UInt16Tests.Ldelema", index, value));
 }
Beispiel #14
0
 public void CgeU2U2(ushort a, ushort b)
 {
     Assert.Equal(UInt16Tests.CgeU2U2(a, b), Run <bool>("Mosa.Test.Collection.UInt16Tests.CgeU2U2", a, b));
 }
Beispiel #15
0
 public void ShiftRightU2U2(ushort a, byte b)
 {
     Assert.Equal(UInt16Tests.ShiftRightU2U2(a, b), Run <int>("Mosa.Test.Collection.UInt16Tests.ShiftRightU2U2", a, b));
 }
Beispiel #16
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 private void RemU2U2DivideByZeroException(ushort a)
 {
     Assert.Equal(UInt16Tests.RemU2U2(a, 0), Run <int>("Mosa.UnitTest.Collection.UInt16Tests.RemU2U2", a, (ushort)0));
 }