Sign in
Calvin Hsia's WebLog
thoughts from a professional developer
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tags
64bit
C++
CSharp
Debugging
FunGames
History
LINQ
Memory
Mesh
Miscellaneous
Pictures
Programming
SmartPhone
Testing
VB
Vista
Visual FoxPro
Visual Studio
Web
Windows API
WPF
Browse by Tags
MSDN Blogs
>
Calvin Hsia's WebLog
>
All Tags
>
testing
Tagged Content List
Blog Post:
Create a logger for watching your test progress as it runs.
CalvinH
I was creating a project that’s a Windows Service, which has components running in multiple processes, using multiple threads and named pipes for communication. To understand the behavior of the code, I wanted to have accurate logging that: · The timing was very critical, so I wanted the log to...
on
29 Dec 2012
Blog Post:
Turn your tests into stress tests easily
CalvinH
It’s great to be able to write tests and execute them while developing a project. While I’m developing, I can hit a button and run the dozens of tests to see if I’ve broken anything. As code gets written lots of things get refactored, moved around, etc. Hitting a button to see if I broke anything is...
on
30 Nov 2012
Blog Post:
Increase the memory available to your tests
CalvinH
I love having test projects included in my solutions. Software is alive. I’m constantly making improvements/changes/fixes. When I have customers asking for various features in my code, or for code improvements, being agile and able to publish a changed build with utmost confidence relies...
on
27 Jun 2012
Blog Post:
Automatic tests protect your code
CalvinH
Last month in Dynamically create huge tooltips in WPF TreeView and ListView I showed some code that creates large tooltips to present lots of data. Today, we’ll talk about creating automatic tests for this feature. Testing User Interface features has been difficult...
on
31 Aug 2011
Blog Post:
Dynamically create huge tooltips in WPF TreeView and ListView
CalvinH
Tooltips are useful. When the mouse hovers over a button a tip can indicate what happens when it’s clicked. The mouse move does not actually invoke the button, but can give information in a passive way. Sometimes I want to make huge tooltips. This essentially gives more screen real estate...
on
29 Jul 2011
Blog Post:
Persist user form size and location settings per session
CalvinH
My prior post ( Create your own Test Host using XAML to run your unit tests ) shows how to create a form and present it to the user. The user can resize and reposition the form, even on a 2 nd monitor. When the user exits the form, we can persist or remember the form size and location, so the next...
on
2 Apr 2008
Blog Post:
Create your own Test Host using XAML to run your unit tests
CalvinH
A few days ago, somebody came into my office and plopped down a box. It seemed very light. He said that it was a new PC. I thought hmmm…. The box seems empty…Why am I getting a new PC?. Apparently an inventory was made and my current hardware was at the lower end of the list. So I started up...
on
27 Mar 2008
Blog Post:
Find the Executing function's name
CalvinH
Often I want to write the SAME code that will display the name of the currently executing method or function. That way I can just copy/paste the same code into multiple methods. For example, in sub Form1_Load I could put this line: System.Diagnostics.Debug.WriteLine( "in Form1_Load" ) ...
on
27 Feb 2008
Blog Post:
Use Visual Studio Test framework to create tests for your code
CalvinH
While writing software over a period of weeks or months, various components of the software get completed at various times. You’ve tested and you’re satisfied they work, and you move on to develop another feature. Or you might check in the source code and somebody else on your team might break your code...
on
25 Feb 2008
Page 1 of 1 (9 items)