Exemplo n.º 1
0
        public static void TestFloorMethod()
        {
            object[,] input = new object[, ]
            {
                { NoDotNetDiff, null, 0m, 0m },
                { NoDotNetDiff, null, -443534569034876.12345678901235m, -443534569034877m },
                { NoDotNetDiff, null, -443534569034876.82345678901235m, -443534569034877m },
                { NoDotNetDiff, null, 443534569034876.12345678901235m, 443534569034876m },
                { NoDotNetDiff, null, 443534569034876.62345678901235m, 443534569034876m },
                { NoDotNetDiff, null, 443534569034876.49999999999999m, 443534569034876m },
                { NoDotNetDiff, null, 443534569034876.50000000000001m, 443534569034876m },
                { NoDotNetDiff, null, 443534569034876.99999999999999m, 443534569034876m },
                { NoDotNetDiff, null, 4435345690348766678656790453m, 4435345690348766678656790453m },
                { NoDotNetDiff, null, 17.9345324m, 17m },
                { NoDotNetDiff, null, -0.9434567690348714234m, decimal.MinusOne },
                { NoDotNetDiff, null, 6999545690348766678656790453m, 6999545690348766678656790453m },
                { NoDotNetDiff, null, DecimalMathTests.MaxValue, DecimalMathTests.MaxValue },
                { NoDotNetDiff, null, decimal.MinusOne, decimal.MinusOne },
                { NoDotNetDiff, null, DecimalMathTests.MinValue, DecimalMathTests.MinValue }
            };

            DecimalMathTests.RunOperationSet(input, "FloorMethod", (a) => decimal.Floor(a));
        }
Exemplo n.º 2
0
 public static void TestSubtractMethod()
 {
     DecimalMathTests.RunOperationSet(InputSubtract, "SubtractMethod", (a, b) => decimal.Subtract(a, b));
 }
Exemplo n.º 3
0
 public static void TestMultiplyMethod()
 {
     DecimalMathTests.RunOperationSet(InputMultiply, "MiltiplyMethod", (a, b) => decimal.Multiply(a, b));
 }
Exemplo n.º 4
0
 public static void TestRemainderMethod()
 {
     DecimalMathTests.RunOperationSet(InputRemainder, "RemainderMethod", (a, b) => decimal.Remainder(a, b));
 }
Exemplo n.º 5
0
 public static void TestAddMethod()
 {
     DecimalMathTests.RunOperationSet(InputAdd, "AddMethod", (a, b) => Decimal.Add(a, b));
 }
Exemplo n.º 6
0
 public static void TestDivideMethod()
 {
     DecimalMathTests.RunOperationSet(InputDivide, "DivideMethod", (a, b) => decimal.Divide(a, b));
 }
Exemplo n.º 7
0
 public static void TestAddOperator()
 {
     DecimalMathTests.RunOperationSet(InputAdd, "AddOperator", (a, b) => a + b);
 }
Exemplo n.º 8
0
 public static void TestDivideOperator()
 {
     DecimalMathTests.RunOperationSet(InputDivide, "DivideOperator", (a, b) => a / b);
 }
Exemplo n.º 9
0
 public static void TestMultiplyOperator()
 {
     DecimalMathTests.RunOperationSet(InputMultiply, "MultiplyOperator", (a, b) => a * b);
 }
Exemplo n.º 10
0
 public static void TestRemainderOperator()
 {
     DecimalMathTests.RunOperationSet(InputRemainder, "RemainderOperator", (a, b) => a % b);
 }
Exemplo n.º 11
0
 public static void TestSubtractOperator()
 {
     DecimalMathTests.RunOperationSet(InputSubtract, "SubtractOperator", (a, b) => a - b);
 }