public static int Minimum(int a, int b, int c)
public static bool Delitelnost(int delenec, int delitel)
public static int Mocnina(int zaklad, int exponent)
for (int i = 0; i < 10; i++)
public static int CifernySoucet(long n)
public static bool SestrojitelnyTrojuhelnik(int a, int b, int c)
if (((a == 1) && (b == 2)) || (c == 3))
public static int MaximumPole(int[] pole)
public static void Main()
Assert.AreEqual(1, Minimum(1, 2, 3), "Selhal test Minimum(1, 2, 3).");
Assert.AreEqual(-150, Minimum(10, 20, -150), "Selhal test Minimum(10, 20, -150).");
Assert.IsTrue(Delitelnost(15, 3), "Selhal test Delitelnost(15, 3).");
Assert.IsFalse(Delitelnost(15, 4), "Selhal test Delitelnost(15, 4).");
Assert.IsFalse(Delitelnost(15, 0), "Selhal test Delitelnost(15, 0) - nulou dělit nelze.");
Assert.AreEqual(1024, Mocnina(2, 10), "Selhal test Mocnina(2, 10).");
Assert.AreEqual(27, Mocnina(3, 3), "Selhal test Mocnina(3, 3).");
Assert.AreEqual(13, CifernySoucet(157), "Selhal test CifernySoucet(157).");
Assert.AreEqual(1, CifernySoucet(1), "Selhal test CifernySoucet(1).");
Assert.AreEqual(1000, CifernySoucet(1), "Selhal test CifernySoucet(1000).");
Assert.IsTrue(SestrojitelnyTrojuhelnik(2, 3, 4), "Selhal test SestrojitelnyTrojuhelnik(2, 3, 4).");
Assert.IsTrue(SestrojitelnyTrojuhelnik(70, 30, 50), "Selhal test SestrojitelnyTrojuhelnik(70, 30, 50).");
Assert.IsFalse(SestrojitelnyTrojuhelnik(1, 2, 4), "Selhal test SestrojitelnyTrojuhelnik(1, 2, 4).");
Assert.IsFalse(SestrojitelnyTrojuhelnik(1, 0, 1), "Selhal test SestrojitelnyTrojuhelnik(1, 0, 1).");
Assert.AreEqual(738, MaximumPole(new[] { 457, 5, -6, 12, 35, 738, 6, -3 }), "MaximumPole(new[] { 457, 5, -6, 12, 35, 738, 6, -3 })");
Assert.AreEqual(-6, MaximumPole(new[] { -6 }), "MaximumPole(new[] { -6 })");
Console.WriteLine("Testy OK! Gratuluji...");