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

            //Act: Call the method
            string actual = test.SwapLast(a);

            //Assert
            Assert.AreEqual(expectedResult, actual);
        }
Exemple #3
0
 public void SwapLast(string a, string expResult)
 {
     Strings obj = new Strings();
     string actual = obj.SwapLast(a);
     Assert.AreEqual(expResult, actual);
 }
        public void SwapLast(string str, string expected)
        {
            Strings Obj = new Strings();

            string actual = Obj.SwapLast(str);

            Assert.AreEqual(expected, actual);
        }