Пример #1
0
        public void RemU4U4(uint a, uint b)
        {
            if (b == 0)
            {
                return;
            }

            Assert.Equal(UInt32Tests.RemU4U4(a, b), Run <uint>("Mosa.Test.Collection.UInt32Tests.RemU4U4", a, b));
        }
Пример #2
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 public void RemU4U4DivideByZeroException(uint a)
 {
     Assert.Equal(UInt32Tests.RemU4U4(a, (uint)0), Run <uint>("Mosa.Test.Collection.UInt32Tests.RemU4U4", a, (uint)0));
 }
Пример #3
0
 public void CgeU4U4(uint a, uint b)
 {
     Assert.Equal(UInt32Tests.CgeU4U4(a, b), Run <bool>("Mosa.Test.Collection.UInt32Tests.CgeU4U4", a, b));
 }
Пример #4
0
 public void LdelemaU4(int index, uint value)
 {
     Assert.Equal(UInt32Tests.Ldelema(index, value), Run <uint>("Mosa.Test.Collection.UInt32Tests.Ldelema", index, value));
 }
Пример #5
0
 public void CompU4([U4] uint a)
 {
     Assert.AreEqual(UInt32Tests.CompU4(a), Run <uint>("Mosa.Test.Collection", "UInt32Tests", "CompU4", a));
 }
Пример #6
0
 public void ShiftRightU4U1(uint a, byte b)
 {
     Assert.Equal(UInt32Tests.ShiftRightU4U1(a, b), Run <uint>("Mosa.Test.Collection.UInt32Tests.ShiftRightU4U1", a, b));
 }
Пример #7
0
 public void RemU4U4([U4] uint a, [U4NotZero] uint b)
 {
     Assert.AreEqual(UInt32Tests.RemU4U4(a, b), Run <uint>("Mosa.Test.Collection", "UInt32Tests", "RemU4U4", a, b));
 }
Пример #8
0
 public void RetU4(uint a)
 {
     Assert.Equal(UInt32Tests.RetU4(a), Run <uint>("Mosa.UnitTest.Collection.UInt32Tests.RetU4", a));
 }
Пример #9
0
 public void CgeU4U4([U4] uint a, [U4] uint b)
 {
     Assert.AreEqual(UInt32Tests.CgeU4U4(a, b), Run <bool>("Mosa.Test.Collection", "UInt32Tests", "CgeU4U4", a, b));
 }
Пример #10
0
 public void DivU4U4DivideByZeroException([U4] uint a)
 {
     Assert.AreEqual(UInt32Tests.DivU4U4(a, (uint)0), Run <uint>("Mosa.Test.Collection", "UInt32Tests", "DivU4U4", a, (uint)0));
 }
Пример #11
0
 public void ShiftRightU4U4([U4] uint a, [I1UpTo32] byte b)
 {
     Assert.AreEqual(UInt32Tests.ShiftRightU4U4(a, b), Run <uint>("Mosa.Test.Collection", "UInt32Tests", "ShiftRightU4U4", a, b));
 }
Пример #12
0
 public static void Test()
 {
     UInt32Tests.AddU4U4(1, 2);
 }
Пример #13
0
 public void AndU4U4(uint a, uint b)
 {
     Assert.Equal(UInt32Tests.AndU4U4(a, b), Run <uint>("Mosa.UnitTest.Collection.UInt32Tests.AndU4U4", a, b));
 }
Пример #14
0
 public void XorU4U4(uint a, uint b)
 {
     Assert.Equal(UInt32Tests.XorU4U4(a, b), Run <uint>("Mosa.Test.Collection.UInt32Tests.XorU4U4", a, b));
 }
Пример #15
0
 public void XorU4U4([U4] uint a, [U4] uint b)
 {
     Assert.AreEqual(UInt32Tests.XorU4U4(a, b), Run <uint>("Mosa.Test.Collection", "UInt32Tests", "XorU4U4", a, b));
 }
Пример #16
0
 public void CompU4(uint a)
 {
     Assert.Equal(UInt32Tests.CompU4(a), Run <uint>("Mosa.Test.Collection.UInt32Tests.CompU4", a));
 }
Пример #17
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 private void DivU4U4DivideByZeroException(uint a)
 {
     Assert.Equal(UInt32Tests.DivU4U4(a, 0), Run <uint>("Mosa.UnitTest.Collection.UInt32Tests.DivU4U4", a, (uint)0));
 }