Skip to content

Commit 0a45159

Browse files
committed
-Fix test
1 parent 7e75bbd commit 0a45159

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Src/Newtonsoft.Json.Tests/Serialization/ConstructorHandlingTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
using System.Linq;
33
using System.Reflection;
44
using System.Text;
5+
using Newtonsoft.Json.Tests.TestObjects;
56
using NUnit.Framework;
67

78
namespace Newtonsoft.Json.Tests.Serialization
89
{
910
public class ConstructorHandlingTests : TestFixtureBase
1011
{
1112
[Test]
12-
[ExpectedException(typeof(JsonSerializationException), ExpectedMessage = "Unable to find a constructor to use for type Newtonsoft.Json.Tests.Serialization.PrivateConstructorTestClass. A class should either have a default constructor or only one constructor with arguments.")]
13+
[ExpectedException(typeof(JsonSerializationException), ExpectedMessage = "Unable to find a constructor to use for type Newtonsoft.Json.Tests.TestObjects.PrivateConstructorTestClass. A class should either have a default constructor or only one constructor with arguments.")]
1314
public void FailWithPrivateConstructorAndDefault()
1415
{
1516
string json = @"{Name:""Name!""}";

0 commit comments

Comments
 (0)