Mark Pearl

Adding to Solution via NuGet

nuget install Machine.Specifications
nuget install Machine.Specifications.Should

Basics of MSpec

public class ThisIsTheTest
{
	Establish context = () => x = 5;
	Because of = () => x = x + 1;
	It Should_Be_6 = () => x.ShouldEqual(6);
}

Keywords

  • Subject
  • Tags
  • Establish
  • Cleanup
  • Because
  • It
  • Ignore
  • Catch

Resharper Templates

  • mse Establish
  • msb Because
  • msi It
  • msf A failing It

References

The Mother Ship - MSpec GitHub
Getting started with MSpec - Covers basic installation
Basics for Settings Up Environment for MSpec



blog comments powered by Disqus

Want to get my personal insights on what I learn as I learn it? Subscribe now!


/