Chris's coding blog

C# Unit test generator

April 24, 2016

This small Javascript pen generates a C# file for an object you want to test, using a list of test cases you specify in the textbox in this format:

  • should write to file
  • should throw myexception when config is empty
  • should load once

See the Pen C# unit test code generator by Chris S. (@yetanotherchris) on CodePen.

csharptestingunit-tests

I'm Chris Small, a software engineer working in London. This is my tech blog. Find out more about me via GithubStackoverflowResume