The NCrunch is returning empty string in the test. However the test works when being run from NUnit test explorer and it returns a GUID.
Check Build Version Is Not Blank()
Code:
{
IHttpActionResult result = controller.GetBuildVersion();
OkNegotiatedContentResult<string> version = result as OkNegotiatedContentResult<string>;
Assert.IsFalse(string.IsNullOrWhiteSpace(version?.Content));
}
controller code is
Code:
{
string fileVersion = ThisAssembly.Git.Sha;
return Ok(fileVersion);
}
This is the only thing that is stopping us from using this great tool. Can you provide a fix or instructions what settings we need to enable, please? Thank you