Ok, I'm not going to pretend I 100% still understand justmock, every sample always seems to be testing justmock if that makes sense :)
But we're running into an issue where our MSTests are failing due to profile bits changing. So lets say my profile says I'm part of Program 1, and we write the test to check things against that using OpenAccess queries to the DB....but then someone changes me to Program 2, then the test starts to fail becasue the subsequent asserts were based on me being in Program 1.
So that being said...
Is it possible to have the mocking tool generate test objects\test data?
Let me jump ship for a second and throw another example
This is an Extension Method we have inside OpenAccess
profiles.SingleOrDefault(x => x.AspnetUser.UserName.Equals(userName));
So if I have a test that says this
"Failed on lowercase test MppProfiles"
...how is that mockable? When reading the examples it seems that I would mock the return from
(), but if I did that isn't that just testing JustMock itself as what I really want to test is if
isn't throwing an error? Or am I looking at this the wrong way?