Exemple #1
0
 public void TakeTwoFromPosition(string a, int b, string expResult)
 {
     Strings obj = new Strings();
     string actual = obj.TakeTwoFromPosition(a, b);
     Assert.AreEqual(expResult, actual);
 }
Exemple #2
0
 public void TakeTwoFromPosition(string str, int n, string expected)
 {
     //arrange
     Strings obj = new Strings();
     //act
     string actual = obj.TakeTwoFromPosition(str, n);
     //assert
     Assert.AreEqual(expected, actual);
 }
Exemple #3
0
        public void TakeTwoFromPosition(string str, int n, string expectedResult)
        {
            //arrange: get your target class
            Strings test = new Strings();

            //Act: Call the method
            string actual = test.TakeTwoFromPosition(str, n);

            //Assert
            Assert.AreEqual(expectedResult, actual);
        }