public static void Main(string[] args) { Console.WriteLine ("ZadaniaBartosza from wykop.pl http://www.wykop.pl/tag/zadaniabartosza/"); //task 1 example (more in unit tests) Task1 task1 = new Task1(); var result1 = task1.Factorial (10); Task2 task2 = new Task2 (); var result2 = task2.IsPrimeNumber(3); Task3 task3 = new Task3 (); task3.GetSmallestCommonDivisor (2, 4); Task4 task4 = new Task4 (); var a = Math.Pow (3, 5); var b = task4.Power (3, 5); var c = task4.Power (3, -3); var randomSortList = Task5.GetRandomSortList (); foreach (var random in randomSortList) { Console.WriteLine (random); } Task6 task61 = new Task6 (); Task6 task62 = new Task6 (); Task6 task63 = new Task6 (); bool areEqual = false; if (task61.PositionX == task62.PositionX && task62.PositionX == task63.PositionX && task61.PositionY == task62.PositionY && task62.PositionY == task63.PositionY) { areEqual = true; } Console.ReadKey (); }
public void RandomPosition() { Task6 task61 = new Task6 (); Task6 task62 = new Task6 (); Task6 task63 = new Task6 (); bool areEqual = false; if (task61.PositionX == task62.PositionX && task62.PositionX == task63.PositionX && task61.PositionY == task62.PositionY && task62.PositionY == task63.PositionY) { areEqual = true; } Assert.IsFalse (areEqual); }
public void RandomPosition() { Task6 task61 = new Task6(); Task6 task62 = new Task6(); Task6 task63 = new Task6(); bool areEqual = false; if (task61.PositionX == task62.PositionX && task62.PositionX == task63.PositionX && task61.PositionY == task62.PositionY && task62.PositionY == task63.PositionY) { areEqual = true; } Assert.IsFalse(areEqual); }
public static void Main(string[] args) { Console.WriteLine("ZadaniaBartosza from wykop.pl http://www.wykop.pl/tag/zadaniabartosza/"); //task 1 example (more in unit tests) Task1 task1 = new Task1(); var result1 = task1.Factorial(10); Task2 task2 = new Task2(); var result2 = task2.IsPrimeNumber(3); Task3 task3 = new Task3(); task3.GetSmallestCommonDivisor(2, 4); Task4 task4 = new Task4(); var a = Math.Pow(3, 5); var b = task4.Power(3, 5); var c = task4.Power(3, -3); var randomSortList = Task5.GetRandomSortList(); foreach (var random in randomSortList) { Console.WriteLine(random); } Task6 task61 = new Task6(); Task6 task62 = new Task6(); Task6 task63 = new Task6(); bool areEqual = false; if (task61.PositionX == task62.PositionX && task62.PositionX == task63.PositionX && task61.PositionY == task62.PositionY && task62.PositionY == task63.PositionY) { areEqual = true; } Console.ReadKey(); }
public string ShowPositionY(int y) { task = new Task6(new Point(0, y)); return(task.PositionY); }
public string ShowPositionX(int x) { task = new Task6(new Point(x, 0)); return(task.PositionX); }
public bool CanAttackRight(int x, int y) { task = new Task6(new Point(x, y)); return(task.IfCanAttackRight()); }
public bool CanGoForward(int input) { task = new Task6(new Point(0, input)); return(task.IfCanGoForward()); }
public string ShowPositionX(int x) { task = new Task6 (new Point (x, 0)); return task.PositionX; }
public bool CanGoForward(int input) { task = new Task6 (new Point (0, input)); return task.IfCanGoForward(); }
public bool CanAttackRight(int x, int y) { task = new Task6 (new Point (x, y)); return task.IfCanAttackRight(); }
public string ShowPositionY(int y) { task = new Task6 (new Point (0, y)); return task.PositionY; }