How do I do implement a trace and assert?



How do I do implement a trace and assert?..

Answer / Sachin Kumar Gupta

In C#, you can use the System.Diagnostics namespace to implement tracing and asserting. For tracing, you can use the Trace and Debug classes. For assertions, you can create custom Assert classes or use libraries like NUnit or MSTest.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the meaning of console writeline in c#?

1 Answers  


Write the difference between TypeOf and GetType?

1 Answers   Wipro,


Is int reference type c#?

1 Answers  


Is it possible to have different access modifiers on the get/set methods of a property?

1 Answers  


Why are strings immutable c#?

1 Answers  


What is a three-tier application.

1 Answers   Siebel,


What is response redirect in c#?

1 Answers  


how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge

1 Answers  


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

1 Answers   DELL,


How much time will it take to learn unity?

1 Answers  


1. Describe page life cycle?

3 Answers   Mphasis,


State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

1 Answers   Siebel,


Categories