This is an add-in for Fody
Adds 'message' parameter to Assertions. It is generated from source code.
Supported frameworks:
- Nunit
- Mstest
- Xunit
https://nuget.org/packages/AssertMessage.Fody/
PM> Install-Package AssertMessage.Fody
public void CustomerTest()
{
var expectedCustomer = new Customer();
var actualCustomer = new Customer();
...
Assert.AreEqual(expectedCustomer.Money, actualCustomer.Money);
}
public void CustomerTest()
{
var expectedCustomer = new Customer();
var actualCustomer = new Customer();
...
Assert.AreEqual(expectedCustomer.Money, actualCustomer.Money, "Assert.AreEqual(expectedCustomer.Money, actualCustomer.Money);");
}
The Pbd files are required for this plugin. To make it work in Release, please enable Debug Info(pdbonly) in Advanced Build Settings Dialog Box. More info
Message by Prerak Patel from The Noun Project