示例#1
0
        public void Multiply_10x10n0()
        {
            FastUtils utils  = new FastUtils(10, 10);
            double    result = utils.Multiply();

            Assert.AreNotEqual(result, 0);
        }
示例#2
0
        public void Multiply_1x0e0()
        {
            double    expected = 0;
            FastUtils utils    = new FastUtils(1, 0);
            double    result   = utils.Multiply();

            Assert.AreEqual(expected, result);
        }
示例#3
0
        public void Multiply_5x10e50()
        {
            double    expected = 50;
            FastUtils utils    = new FastUtils(5, 10);
            double    result   = utils.Multiply();

            Assert.AreEqual(expected, result);
        }
示例#4
0
        public void Multiply_0x1e0()
        {
            FastUtils utils = new FastUtils(0, 1);

            double result = utils.Multiply();

            // Assert.AreEqual(0, Utilities.Multiply(0, 1));
            Assert.AreEqual(0, result);
        }
示例#5
0
        public void Multiply_0x1n1()
        {
            FastUtils utils = new FastUtils(0, 1);

            Assert.AreNotEqual(1, utils.Multiply());
        }
示例#6
0
        public void Multiply_1x10n1000()
        {
            FastUtils utils = new FastUtils(1, 10);

            Assert.AreNotEqual(1000, utils.Multiply());
        }