/ Published in: C#
                    
                                        
This is particularly useful for unit testing, but you could do it anywhere in your code.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
//Use TestInitialize to run code before running each test
[TestInitialize()]
public void MyTestInitialize()
{
}
// Implementation
Trace.WriteLine("Tracing my program execution");
Comments
 Subscribe to comments
                    Subscribe to comments
                
                