Beispiel #1
0
        public void CountLast2Test(string str, int expected)
        {
            Loops lw     = new Loops();
            int   result = lw.CountLast2(str);

            Assert.AreEqual(expected, result);
        }
Beispiel #2
0
        public void CountLast2test(string str, int expected)
        {
            //Arrange
            Loops test = new Loops();
            //Act
            int actual = test.CountLast2(str);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public void CountLast2(string a, int expected)
        {
            // arrange
            Loops obj = new Loops();

            // act
            int actual = obj.CountLast2(a);

            // assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #4
0
        public void CountLast2Test(string s, int expected)
        {
            int actual = obj.CountLast2(s);

            Assert.AreEqual(expected, actual);
        }
Beispiel #5
0
        public void CountLast2Test(string str, int expected)
        {
            var actual = _loops.CountLast2(str);

            Assert.AreEqual(expected, actual);
        }