-Tests
This commit is contained in:
+6
-1
@@ -28,10 +28,12 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
|
||||
{
|
||||
public class SerializeSerializationBinder
|
||||
[TestFixture]
|
||||
public class SerializeSerializationBinder : TestFixtureBase
|
||||
{
|
||||
#region Types
|
||||
public class KnownTypesBinder : SerializationBinder
|
||||
@@ -57,6 +59,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
|
||||
}
|
||||
#endregion
|
||||
|
||||
[Test]
|
||||
public void Example()
|
||||
{
|
||||
#region Usage
|
||||
@@ -93,6 +96,8 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
|
||||
Console.WriteLine(newValue.GetType().Name);
|
||||
// Car
|
||||
#endregion
|
||||
|
||||
Assert.AreEqual("Car", newValue.GetType().Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user