Relative Content

Tag Archive for c#visual-studiounit-testingtestingfixtures

How to implement testing fixtures using Visual Studio and C#

I am new to C# and I and using the built in Test support in Visual Studio 2012 to employ test driven development for a new library. I have implemented a few test cases for a USB SPI adapter and find myself duplicating alot of “startup” and “teardown” code for each test case. I am used to python pytest with its ‘fixtures’ to help reduce duplicated test code. So far I have been unable to find a similar concept with C# and Visual Studio.