Slide 24
Slide 24 text
Unit Testing -
Layout
Split up tests by assembly/project.
• Ex: if you have two libraries: foo.dll, bar.dll
• have 2 unit test assemblies: foo.tests.dll, bar.tests.dll
Try to have at least 1 test class per class
• Ex: if you have two classes in project foo: a.cs, b.cs
• have 2 unit test classes in project foo.tests: aTests.cs,
bTests.cs
• If there are a lot of methods, or tests for some methods,
split it up if there are a too many tests in one class.
Use folders to mirror layout and namespaces
of target project