public void TestForLoop() { var targets = new BenchmarkTarget3(); targets.ForLoop(10); Assert.IsTrue(true); }
public void TestLogicalOr() { var targets = new BenchmarkTarget3(); var actual = targets.LogicalOr(0, 1); var expected = true; Assert.AreEqual(expected, actual); }
public void TestMoreThan() { var targets = new BenchmarkTarget3(); var actual = targets.MoreThan(10, 5); var expected = true; Assert.AreEqual(expected, actual); }
public void TestIf() { var targets = new BenchmarkTarget3(); var actual = targets.If(true); var expected = true; Assert.AreEqual(expected, actual); }
public void TestWhileLoop() { var targets = new BenchmarkTarget3(); var actual = targets.WhileLoop(10); var expected = 10; Assert.AreEqual(expected, actual); }
public void TestModulo() { var targets = new BenchmarkTarget3(); var actual = targets.Modulo(3, 2); var expected = 1; Assert.AreEqual(expected, actual); }
public void TestMultiplication() { var targets = new BenchmarkTarget3(); var actual = targets.Multiplication(2, 2); var expected = 4; Assert.AreEqual(expected, actual); }
public void TestDivision() { var targets = new BenchmarkTarget3(); var actual = targets.Division(2, 1); var expected = 2; Assert.AreEqual(expected, actual); }
public void TestSubtraction() { var targets = new BenchmarkTarget3(); var actual = targets.Subtraction(5, 4); var expected = 1; Assert.AreEqual(expected, actual); }
public void TestAddition() { var targets = new BenchmarkTarget3(); var actual = targets.Addition(5, 4); var expected = 9; Assert.Equal(expected, actual); }
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); }
public void TestLessThan() { var targets = new BenchmarkTarget3(); var actual = false; actual = targets.LessThan(5, 10); var expected = true; Assert.AreEqual(expected, actual); }