Write a unit test to test reverse String. [TestFixture] class UnitTests { [Test] public void TestReverseString() { // write code here... } }

Questions by bsrreddy

Showing Answers 1 - 6 of 6 Answers

Reverse string is nothing but if we give any input the output will be shown
directly reverse to it


This is for sentence format
say for example if we "saravanan is lazy" as input
but output will be "lazy is saravanan"


for the above test case is
1. Check whether the output we receive is same what we give as input
2. Check whether the output we receive is directly reversed only in the wording
not in the sentence format.


For a word format as same it should come as directly reverse of the word such
as input is samsung the output is gnusmas


1. Check whether the output we receive is same what we give as input
2. Check whether the output we receive is directly reversed only in the letter
from last to first

  Was this answer useful?  Yes

ssaradha85

  • Jan 24th, 2010
 

1 ) Chk whether the code compiles & runs properly. 

2 ) Chk whether the code accepts the string at the run time
3 ) Chk whether the String accepted gives the desired output. 
  eg : Rose is the input given. 
         output : esor. 
4 ) Chk by giving input as a numeric number, spl char.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions