Which code segment should you use?
A. Debug.Assert(fName == &quot;John&quot;, &quot;Test Failed: &quot;, fName);
B. Debug.WriteLineIf(fName != &quot;John&quot;, fName, &quot;Test Failed&quot;);
C. if (fName != &quot;John&quot;) { Debug.Print(&quot;Test Failed: &quot;); Debug.Print(fName); }
D. if (fName != &quot;John&quot;) { Debug.WriteLine(&quot;Test Failed: &quot;); Debug.WriteLine(fName); }
Answer:B
Which code segment should you use?
A. Debug.Assert(fName == &quot;John&quot;, &quot;Test Failed: &quot;, fName);
 B. Debug.WriteLineIf(fName != &quot;John&quot;, fName, &quot;Test Failed&quot;);
 C. if (fName != &quot;John&quot;) { Debug.Print(&quot;Test Failed: &quot;); Debug.Print(fName); }
 D. if (fName != &quot;John&quot;) { Debug.WriteLine(&quot;Test Failed: &quot;); Debug.WriteLine(fName); }
