コード例 #1
0
        public void RemU8U8(ulong a, ulong b)
        {
            if (b == 0)
            {
                return;
            }

            Assert.Equal(UInt64Tests.RemU8U8(a, b), Run <ulong>("Mosa.Test.Collection.UInt64Tests.RemU8U8", a, b));
        }
コード例 #2
0
        public void RemU8U8([U8] ulong a, [U8NotZero] ulong b)
        {
            //[Row(UInt64.MaxValue - 1, UInt64.MaxValue)] // BUG: Crashes test runner
            if ((a == UInt64.MaxValue - 1) && (b == UInt64.MaxValue))
            {
                Assert.Inconclusive("TODO: Overflow exception not implemented");
            }

            Assert.AreEqual(UInt64Tests.RemU8U8(a, b), Run <ulong>("Mosa.Test.Collection", "UInt64Tests", "RemU8U8", a, b));
        }
コード例 #3
0
 //[Theory]
 //[ExpectedException(typeof(DivideByZeroException))]
 public void RemU8U8DivideByZeroException(ulong a)
 {
     Assert.Equal(UInt64Tests.RemU8U8(a, (ulong)0), Run <ulong>("Mosa.Test.Collection.UInt64Tests.RemU8U8", a, (ulong)0));
 }