Example #1
0
        public void CanHazTableTest(int yourStyle, int dateStyle, int expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            int actualResult = loops.CanHazTable(yourStyle, dateStyle);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #2
0
        public void CaughtSpeedingTest(int speed, bool isBirthday, int expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            int actualResult = loops.CaughtSpeeding(speed, isBirthday);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #3
0
        public void AnswerCellTest(bool isMorning, bool isMom, bool isAsleep, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.AnswerCell(isMorning, isMom, isAsleep);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #4
0
        public void AreInOrderTest(int a, int b, int c, bool bOk, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.AreInOrder(a, b, c, bOk);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #5
0
        public void GreatPartyTest(int cigars, bool isWeekend, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.GreatParty(cigars,isWeekend);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #6
0
        public void AlarmClockTest(int day, bool vacation, string expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            string actualResult = loops.AlarmClock(day, vacation);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #7
0
        public void TwoIsOneTest(int a, int b, int c, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.TwoIsOne(a, b, c);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #8
0
 public void InOrderEqualTest(int a, int b, int c, bool equalOk, bool expectedResult)
 {
     LogicWarmups logic15= new LogicWarmups();
     bool actualResult = logic15.InOrderEqual(a,b,c,equalOk);
     Assert.AreEqual(expectedResult, actualResult);
 }
Example #9
0
        public void SkipSumTest(int a, int b, int expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            int actualResult = loops.SkipSum(a, b);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #10
0
        public void RollDiceTest(int die1, int die2, bool noDoubles, int expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            int actualResult = loops.RollDice(die1, die2, noDoubles);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #11
0
        public void PlayOutsideTest(int temp, bool isSummer, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.PlayOutside(temp, isSummer);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #12
0
        public void Mod35Test(int n, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.Mod35(n);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #13
0
        public void LoveSixTest(int a, int b, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.LoveSix(a, b);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #14
0
        public void LastDigitTest(int a, int b, int c, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.LastDigit(a, b, c);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #15
0
        public void SpecialElevenTest(int n, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.SpecialEleven(n);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #16
0
        public void InRangeTest(int n, bool outsideMode, bool expectedResult)
        {
            LogicWarmups loops = new LogicWarmups();
            bool actualResult = loops.InRange(n, outsideMode);

            Assert.AreEqual(expectedResult, actualResult);
        }
Example #17
0
 public void Mod20Test(int n, bool expectedResult)
 {
     LogicWarmups logic10 = new LogicWarmups();
     bool actualResult = logic10.Mod20(n);
     Assert.AreEqual(expectedResult,actualResult);
 }