Beispiel #1
0
        private static void Main(string[] args)
        {
            Warmup prog = new Warmup();
            //Console.WriteLine("Dean's Strings Warmups:\n");
            //Strings Warmups
            //Console.WriteLine(prog.SayHi("Dean"));
            //Console.WriteLine(prog.Abba("YOLO", "BRO"));
            //Console.WriteLine(prog.MakeTags("tagz", "Contento"));
            //Console.WriteLine(prog.InsertWord("[[]]", "DANK"));
            //Console.WriteLine(prog.MultipleEndings("Super"));
            //Console.WriteLine(prog.FirstHalf("WhereAreYou?"));
            //Console.WriteLine(prog.TrimOne("Danking"));
            //Console.WriteLine(prog.LongInMiddle("Baller", "time"));
            //Console.WriteLine(prog.RotateLeft2("kawaii"));
            //Console.WriteLine(prog.RotateRight2("Swagerific"));
            //Console.WriteLine(prog.TakeOne("Cleveland", false));
            //Console.WriteLine(prog.MiddleTwo("DeanChoi"));
            //Console.WriteLine(prog.EndsWithLy("Holy Moly"));
            //Console.WriteLine(prog.FrontAndBack("LeBronJames", 3));
            //Console.WriteLine(prog.TakeTwoFromPosition("Danking", 2));
            //Console.WriteLine(prog.HasBad("xbadassery"));
            //Console.WriteLine(prog.AtFirst("hello"));
            //Console.WriteLine(prog.LastChars("YOLO", "totally"));
            //Console.WriteLine(prog.ConCat("abcd", "defg"));
            //Console.WriteLine(prog.SwapLast("coding"));
            //Console.WriteLine(prog.FrontAgain("edited"));
            //Console.WriteLine(prog.MinCat("Hello", "java"));
            //Console.WriteLine(prog.TweakFront("abedcf"));
            //Console.WriteLine(prog.StripX("xHxix"));

            //Conditionals Warmups
            //Console.WriteLine("\nDean's Conditionals Warmups:\n");
            //Console.WriteLine(prog.AreWeInTrouble(true, true));
            //Console.WriteLine(prog.CanSleepIn(true, false));
            //Console.WriteLine(prog.SumDouble(2, 2));
            //Console.WriteLine(prog.Diff21(23));
            //Console.WriteLine(prog.ParrotTrouble(true, 6));
            //Console.WriteLine(prog.Makes10(1, 9));
            //Console.WriteLine(prog.NearHundred(198));
            //Console.WriteLine(prog.PosNeg(-4, -5, true));
            //Console.WriteLine(prog.NotString("candy"));
            //Console.WriteLine(prog.MissingChar("kitten", 1));
            //Console.WriteLine(prog.FrontBack("deanzel"));
            //Console.WriteLine(prog.Front3("Microsoft"));
            //Console.WriteLine(prog.BackAround("Hello"));
            //Console.WriteLine(prog.Multiple3or5(10));
            //Console.WriteLine(prog.StartHi("high up"));
            //Console.WriteLine(prog.IcyHot(120, -1));
            //Console.WriteLine(prog.Between10and20(12, 99));
            //Console.WriteLine(prog.HasTeen(20, 19, 10));
            //Console.WriteLine(prog.SoAlone(13, 13));
            //Console.WriteLine(prog.RemoveDel("adeldank"));
            //Console.WriteLine(prog.IxStart("mix booze"));
            //Console.WriteLine(prog.StartOz("ozymandias"));
            //Console.WriteLine(prog.Max(1, 3, 2));
            //Console.WriteLine(prog.Closer(13, 7));
            //Console.WriteLine(prog.GotE("Heelle"));
            //Console.WriteLine(prog.EndUp("hi there"));
            //Console.WriteLine(prog.EveryNth("Miracle", 2));

            //Loops Warmups
            //Console.WriteLine("Dean's Loops Warmups:\n");
            //Console.WriteLine(prog.StringTimes("Yolo", 3));
            //Console.WriteLine(prog.FrontTimes("Chocolate", 3));
            //Console.WriteLine(prog.CountXX("xxxDx"));
            //Console.WriteLine(prog.DoubleX("axxbb"));
            //Console.WriteLine(prog.EveryOther("Heeololeo"));
            //Console.WriteLine(prog.StringSplosion("Code"));
            //Console.WriteLine(prog.CountLast2("axxxaaxx"));
            //Console.WriteLine(prog.Count9(new int[] {1, 9, 9, 3, 9}));
            //Console.WriteLine(prog.ArrayFront9(new int[] {1, 2, 9, 3, 4}));
            //Console.WriteLine(prog.Array123(new int[] {1, 1, 2, 3, 1}));
            //Console.WriteLine(prog.SubStringMatch("xxcaazz", "xxbaaz"));
            //Console.WriteLine(prog.StringX("xxHxix"));
            //Console.WriteLine(prog.AltPairs("Chocolate"));
            //Console.WriteLine(prog.DoNotYak("yak123ya"));
            //Console.WriteLine(prog.Array667(new int[] {6, 7, 2, 6}));
            //Console.WriteLine(prog.NoTriples(new int[] {1, 1, 2, 2, 2, 1}));
            //Console.WriteLine(prog.Pattern51(new int[] {1, 2, 7, 1, 1}));

            //Logic Warmups
            //Console.WriteLine("Dean's Logic Warmups:\n");
            //Console.WriteLine(prog.GreatParty(50, false));
            //Console.WriteLine(prog.CanHazTable(5, 10));
            //Console.WriteLine(prog.PlayOutside(95, true));
            //Console.WriteLine(prog.CaughtSpeeding(65, false));
            //Console.WriteLine(prog.SkipSum(9, 4));
            //Console.WriteLine(prog.AlarmClock(1, false));
            //Console.WriteLine(prog.LoveSix(1, 5));
            //Console.WriteLine(prog.InRange(11, true));
            //Console.WriteLine(prog.SpecialEleven(23));
            //Console.WriteLine(prog.Mod20(20));
            //Console.WriteLine(prog.Mod35(10));
            //Console.WriteLine(prog.AnswerCell(true, false, false));
            //Console.WriteLine(prog.TwoIsOne(3, 1, 2));
            //Console.WriteLine(prog.AreInOrder(1, 2, 4, false));
            //Console.WriteLine(prog.InOrderEqual(2, 5, 11, false));
            //Console.WriteLine(prog.LastDigit(23, 19, 13));
            //Console.WriteLine(prog.RollDice(3, 3, false));

            //Arrays Warmups
            Console.WriteLine("Dean's Arrays Warmups:\n");
            //Console.WriteLine(prog.FirstLast6(new int[] {6, 1, 2, 3}));
            //Console.WriteLine(prog.SameFirstLast(new int[] {1, 2, 3, 1}));
            //Console.WriteLine(prog.MakePi(3));
            //Console.WriteLine(prog.CommonEnd(new int[] {1, 2, 3}, new int[] {7, 3}));
            //Console.WriteLine(prog.Sum(new int[] {1, 2, 3}));
            //Console.WriteLine(prog.RotateLeft(new int[] { 1, 2, 3 }));
            //Console.WriteLine(prog.Reverse(new int[] {1, 2, 3, 4}));

            //Rest didn't need or display a Console.WriteLine
            Console.ReadLine();
        }
Beispiel #2
0
 public void BeforeEachTest()
 {
     Testwarmup = new Warmup();
     Console.WriteLine("SetUp Called.");
 }