Skip to content

ThatRendle/InterfaceTests.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Interface Tests for .NET

I've created this repository because I needed a default set of tests for the implementation of IDictionary<string, object> in Simple.Data's SimpleRecord type.

While the internal implementation of that type is specific to the requirements of Simple.Data and its API, when it is used as an IDictionary<string, object> its behaviour should be consistent and predictable according to the "contract" represented by that interface.

This is true of a whole bunch of interfaces that are defined in the .NET Base Class Library, and I hope that people will fork this repository and add more standard tests for things like IList, ISet and so on, or add more tests to existing files, and send me pull requests.

My starting test is for NUnit; if you prefer a different test framework, please suffix the filename with, e.g., "_XUnit" or "_MSTest".

I originally tried to implement this first test as a base abstract class, but the tooling support for running tests contained in a base class was so poor that I switched to having a single-class implementation. Hopefully the tooling will improve. :)

About

A repository of copyable tests for implementations of .NET BCL interfaces

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages