Exemple #1
0
        public void TestForLoop()
        {
            var targets = new BenchmarkTarget3();

            targets.ForLoop(10);
            Assert.IsTrue(true);
        }
Exemple #2
0
        public void TestLogicalOr()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.LogicalOr(0, 1);
            var expected = true;

            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void TestMoreThan()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.MoreThan(10, 5);
            var expected = true;

            Assert.AreEqual(expected, actual);
        }
Exemple #4
0
        public void TestIf()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.If(true);
            var expected = true;

            Assert.AreEqual(expected, actual);
        }
Exemple #5
0
        public void TestWhileLoop()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.WhileLoop(10);
            var expected = 10;

            Assert.AreEqual(expected, actual);
        }
Exemple #6
0
        public void TestModulo()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.Modulo(3, 2);
            var expected = 1;

            Assert.AreEqual(expected, actual);
        }
Exemple #7
0
        public void TestMultiplication()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.Multiplication(2, 2);
            var expected = 4;

            Assert.AreEqual(expected, actual);
        }
Exemple #8
0
        public void TestDivision()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.Division(2, 1);
            var expected = 2;

            Assert.AreEqual(expected, actual);
        }
Exemple #9
0
        public void TestSubtraction()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.Subtraction(5, 4);
            var expected = 1;

            Assert.AreEqual(expected, actual);
        }
Exemple #10
0
        public void TestAddition()
        {
            var targets  = new BenchmarkTarget3();
            var actual   = targets.Addition(5, 4);
            var expected = 9;

            Assert.Equal(expected, actual);
        }
Exemple #11
0
        public void TestArray()
        {
            var targets = new BenchmarkTarget3();
            var actual  = targets.ConstructArray();

            int[] expected = { 1, 2, 3, 6, 4, 2, 5, 3, 2, 6, 7 };

            Assert.AreEqual(expected, expected);
        }
Exemple #12
0
        public void TestLessThan()
        {
            var targets = new BenchmarkTarget3();
            var actual  = false;

            actual = targets.LessThan(5, 10);

            var expected = true;

            Assert.AreEqual(expected, actual);
        }