Skip to content

Provides a test base class that wraps MSTest assertions in an expect-syntax and provides a chaining mechanism for multiple assertions on the same object

License

Notifications You must be signed in to change notification settings

obivandamme/MSTest.Fluent

Repository files navigation

MSTest.Fluent

Provides a test base class that wraps MSTest assertions in an expect-syntax and provides a chaining mechanism for multiple assertions on the same object

Features

  • MSTest.Fluent.TestBase class that holds the Expect-Method to start your fluent assertions
  • Allows chaining of assertions using a fluent syntax

Example

[TestClass]
public class MyTests : MSTest.Fluent.TestBase
{
  [TestMethod]
  public void MyTest()
  {
    var actual = 5
    
    Expect(actual).ToEqual(5);
  }
}

Changelog

Version 1.1

  • Added ToBeNull & Not.ToBeNull to string assertion

About

Provides a test base class that wraps MSTest assertions in an expect-syntax and provides a chaining mechanism for multiple assertions on the same object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages