Skip to content

A vanilla C# test suite project that includes an Assert class that provides assertions very similar to popular testing frameworks.

License

Notifications You must be signed in to change notification settings

Sparse/CsTestProj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CsTestProj

A vanilla C# test suite project that includes an Assert class that provides assertions very similar to popular testing frameworks. The reason why this may be necessary is that the Express editions of Visual Studio do not allow for extensions. Most unit testing frameworks work on a plugin/extension basis. This project has no such requirement and can be used witih Express.

Usage

It's pretty much what you'd expect for a project.

  1. Drop CsTestProj folder into solution folder (I would just prefer to call it "Test" though).
  2. Add existing project through Visual Studio.
  3. Add project reference(s) to your code project(s) in the Test project.
  4. Optionally: Add [assembly: InternalsVisibleTo("Test")] to AssemblyInfo.cs in your project(s).
  5. Start creating tests by affixing the vanilla .NET testing attributes of TestClass and TestMethod. Included is a self-test of the assertion framework that can be used as a model.

About

A vanilla C# test suite project that includes an Assert class that provides assertions very similar to popular testing frameworks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%