ToString() 공개 메소드

public ToString ( ) : string
리턴 string
예제 #1
0
 public void AnswerShouldHaveText()
 {
     const string answerText = "This was supposed to be a funny answer but Chandra couldn't come up with one";
     Answer answer = new Answer(new AskMeDate(), null, answerText);
     Assert.AreSame(answerText, answer.ToString());
 }