I'm using:
NCrunch v2.15
Visual Studio 2015, Enterprise Edition
A simple test that showed some strange behavior for me:
Code:
[TestMethod]
public void TopLevelGroupsAndLoners_Construct_IsCorrect()
> {
// arrange, act
* var datastore = CreateDatastore();
O var viewModel = CreateShowGroupsOrLonersViewModel(datastore);
// assert
O Assert.AreNotEqual(null, viewModel);
O Assert.AreEqual(0, viewModel.Count);
}
The > and * are green, but the O's are white dots .... why?
The test is showing as passed in the NCrunch Tests window (green check mark and "Passed").
So, I deleted the NCrunch settings files, tried rearranging and/or renaming the code in various ways, did many synchronize and rebuilds from NCrunch, did many Clean Solutions and Rebuilds from Visual Studio, closed and relaunched Visual Studio and then my PC, etc. No joy.
Eventually I started deleting code and support files, to see if the behavior went away (the test and code it is exercising is pretty simple).
My Visual Studio solution has 4 projects in it:
Lab_Viewer
ModelingProject1
UnitTests_Viewer
Viewer
I deleted the ModelingProject1 project entirely, which I had previously created from the Architecture menu using New UML or Layer Diagram. Success.
Just to confirm, I did an TFS Undo to restore the project, rebuilt everything, and the problem showed up again.
You may already know about this behavior, but I couldn't find any reference to it using various searches.
Just thought you'd want to know.
By the way, an absolutely FANTASTIC product.