示例#1
0
        public void CountLast2(string str, int expectedResult)
        {
            LoopWarmups loops = new LoopWarmups();
            int actualResult = loops.CountLast2(str);

            Assert.AreEqual(expectedResult, actualResult);
        }
示例#2
0
        public void Count9(int[] numbers, int expectedResult)
        {
            LoopWarmups loops = new LoopWarmups();
            int actualResult = loops.Count9(numbers);

            Assert.AreEqual(expectedResult, actualResult);
        }
示例#3
0
        public void ArrayFront9(int[] numbers, bool expectedResult)
        {
            LoopWarmups loops = new LoopWarmups();
            bool actualResult = loops.ArrayFront9(numbers);

            Assert.AreEqual(expectedResult, actualResult);
        }
示例#4
0
        public void AltPairs(string str, string expectedResult)
        {
            LoopWarmups loops = new LoopWarmups();
            string actualResult = loops.AltPairs(str);

            Assert.AreEqual(expectedResult, actualResult);
        }
示例#5
0
 public void DoNotYakeTest(string str, string expectedResult)
 {
     LoopWarmups loop14 = new LoopWarmups();
     string actualResult = loop14.DoNotYak(str);
     Assert.AreEqual(expectedResult,actualResult);
 }
示例#6
0
 public void CountXXTest(string str, int expectedResult)
 {
     LoopWarmups loop3 = new LoopWarmups();
     int actualResult = loop3.CountXX(str);
     Assert.AreEqual(expectedResult, actualResult);
 }
示例#7
0
 public void Array667Test(int[] numbers, int expectedResult)
 {
     LoopWarmups loop15 = new LoopWarmups();
     int actualResult = loop15.Array667(numbers);
     Assert.AreEqual(expectedResult, actualResult);
 }
示例#8
0
 public void SubStringMatchTest(string a, string b, int expectedResult)
 {
     LoopWarmups loop11 = new LoopWarmups();
     int actualResult = loop11.SubStringMatch(a, b);
     Assert.AreEqual(expectedResult,actualResult);
 }
示例#9
0
 public void StringXTest(string str, string expectedResult)
 {
     LoopWarmups loop12 = new LoopWarmups();
     string actualResult = loop12.StringX(str);
     Assert.AreEqual(expectedResult,actualResult);
 }
示例#10
0
 public void StringTimesTest(string str, int n, string expectedResult)
 {
     //Arrange
     LoopWarmups loops = new LoopWarmups();
     //Act
     string actualResult = loops.StringTimes(str, n);
     //Assert
     Assert.AreEqual(expectedResult, actualResult);
 }
示例#11
0
 public void StringSplosionTest(string str, string expectedResult)
 {
     LoopWarmups loop6 = new LoopWarmups();
     string actualResult = loop6.StringSplosion(str);
     Assert.AreEqual(expectedResult,actualResult);
 }
示例#12
0
 public void Pattern51Test(int[] numbers, bool expectedResult)
 {
     LoopWarmups loop17 = new LoopWarmups();
     bool actualResult = loop17.Pattern51(numbers);
     Assert.AreEqual(expectedResult,actualResult);
 }
示例#13
0
 public void NoTriplesTest(int[] numbers, bool expectedResult)
 {
     LoopWarmups loop16 = new LoopWarmups();
     bool actualResult = loop16.NoTriples(numbers);
     Assert.AreEqual(expectedResult,actualResult);
 }
示例#14
0
 public void FrontTimesTest(string str, int n, string expectedResult)
 {
     LoopWarmups loop2 = new LoopWarmups();
     string actualResult = loop2.FrontTimes(str, n);
     Assert.AreEqual(expectedResult,actualResult);
 }
示例#15
0
 public void EveryOtherTest(string str, string expectedResult)
 {
     LoopWarmups loop5 = new LoopWarmups();
     string actualResult = loop5.EveryOther(str);
     Assert.AreEqual(expectedResult,actualResult);
 }
示例#16
0
 public void DoubleXTest(string str, bool expectedResult)
 {
     LoopWarmups loop4 = new LoopWarmups();
     bool actualResult = loop4.DoubleX(str);
     Assert.AreEqual(expectedResult,actualResult);
 }