Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Passing test shows red on sidebar
PaulCoffey405
#1 Posted : Thursday, February 15, 2018 10:52:34 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/15/2018(UTC)
Posts: 2
Location: United States of America

i just renewed my license and started writing tests.

i have a test that passes:
Test Runner Passing

but NCrunch keeps showing the test as failing
NCrunch showing fail

it seems like it has a cache that needs cleared but i can't find it. anyone have any ideas on this one?

NCrunch version 3.12.0.15
Visual Studio 2017 Version 15.5.4

Remco
#2 Posted : Thursday, February 15, 2018 11:42:23 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,970

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi, thanks for sharing this problem.

What is the nature of this exception? Does it appear consistently? Is there another dependency here?

If the test is failing consistently under NCrunch, then probably there is due to a difference between the NCrunch test environment and the one in which your test is passing. We've tried to document these as best we can. If you can give more information about why the test is failing, I may be able to help further.
PaulCoffey405
#3 Posted : Monday, February 19, 2018 3:38:33 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/15/2018(UTC)
Posts: 2
Location: United States of America

it is 100% consistent. i did some digging and it is JSON.NET
i am seeing this error.

There was a problem saving the new Contact ---> System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9\bin\plugins\Diagnostics\Newtonsoft.Json.dll' or one of its dependencies. The system cannot find the file specified.


i have am using Newetonsoft 11.01, via nuget, in NuGet.
it looks to be my DTO project. it has a JSON.NET reference to track fields that don't serialize and to ignore a couple of properties.

[JsonIgnore]
public HashSet<string> DirtyFields { get; }

[JsonIgnore]
public HashSet<string> DirtyObjects { get; }

[JsonExtensionData]
[JsonIgnore]
public IDictionary<string, JToken> UnmappedFields { get; private set; }
Remco
#4 Posted : Monday, February 19, 2018 9:48:51 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,970

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Would you be able to try placing NCrunch in compatibility mode to see if any of these settings resolve the problem? Also, could you check if Newtonsoft.Json.dll exists at the searched location with the correct version?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download