private static void FourthMenu() { int item, item1; Out.Line("\tChoose item of menu:\n\t1 - Sum And Quantity\n\t2 - Palindrom\n\t3 - Simple or not\n\t4 - Deviders\n\t5 - LCM and GCD finder\n\t6 - Max value\n\t-> "); int choise = integerChecker(); switch (choise) { case 1: Out.Line("\tType some integer: "); item = integerChecker(); Out.NewLine("\tSum is : " + SumAndQuantity.Sum(item)); Out.NewLine("\tQuantity of numbers: " + SumAndQuantity.Quantity(item)); break; case 2: Out.Line("\tIntput number: "); item = integerChecker(); Out.NewLine("\tResult: " + Palindrom.GetPalindrome(item)); break; case 3: Out.Line("\tInput your int value: "); item = integerChecker(); Out.NewLine("\tResult is: " + SimpleOrNot.SimpleOrNotChecker(item)); break; case 4: Out.Line("\tInput your value: "); item = integerChecker(); Out.NewLine("\tDividers for " + item + ": " + Dividers.DividersFounder(item)); break; case 5: Out.NewLine("\tType your numbers to find LCM and GCD: "); Out.Line("\t1)"); item = integerChecker(); Out.Line("\t2)"); item1 = integerChecker(); Out.NewLine("\tLCM: " + NodAndNokFinder.FinderOfNok(item, item1)); Out.NewLine("\tGCD: " + NodAndNokFinder.FinderOfNod(item, item1)); break; case 6: Out.Line("Input some number:"); item = integerChecker(); Out.NewLine("Max value: " + MaxValue.MaxValueFounder(item)); break; default: break; } } //fourthMenu
public void SimpleOrNotTester() { int nonsimple = 4; Assert.AreEqual(false, SimpleOrNot.SimpleOrNotChecker(nonsimple)); }