Posts tagged 'unit-testing'
Unit testing events with anonymous methods
For a side project, I was unit testing a class with custom events and needed a way to test those events. Anonymous methods makes unit testing of events easy. The below example is simple, but demonstrates how easy it is to unit test events with anonymous methods. using System ; using NUnit . Framework...
Continue reading "Unit testing events with anonymous methods"
NUnitForms GenericControlTester
In a Windows forms test project using NUnitForms, I was trying to test some DevExpress controls, so I came up with the GenericControlTester for this. It can test any control as long as it inherits System.Windows.Forms.Control. using System . Windows . Forms ; using NUnit . Extensions . Forms ; public...
Continue reading "NUnitForms GenericControlTester"




