-Line endings
This commit is contained in:
@@ -1,35 +1,35 @@
|
||||
#if !NETFX_CORE
|
||||
using NUnit.Framework;
|
||||
#else
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TestFixture = Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute;
|
||||
using Test = Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute;
|
||||
#endif
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Newtonsoft.Json.Tests.Linq
|
||||
{
|
||||
[TestFixture]
|
||||
public class JRawTests : TestFixtureBase
|
||||
{
|
||||
[Test]
|
||||
public void RawEquals()
|
||||
{
|
||||
JRaw r1 = new JRaw("raw1");
|
||||
JRaw r2 = new JRaw("raw1");
|
||||
JRaw r3 = new JRaw("raw2");
|
||||
|
||||
Assert.IsTrue(JToken.DeepEquals(r1, r2));
|
||||
Assert.IsFalse(JToken.DeepEquals(r1, r3));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RawClone()
|
||||
{
|
||||
JRaw r1 = new JRaw("raw1");
|
||||
JToken r2 = r1.CloneToken();
|
||||
|
||||
CustomAssert.IsInstanceOfType(typeof(JRaw), r2);
|
||||
}
|
||||
}
|
||||
#if !NETFX_CORE
|
||||
using NUnit.Framework;
|
||||
#else
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TestFixture = Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute;
|
||||
using Test = Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute;
|
||||
#endif
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Newtonsoft.Json.Tests.Linq
|
||||
{
|
||||
[TestFixture]
|
||||
public class JRawTests : TestFixtureBase
|
||||
{
|
||||
[Test]
|
||||
public void RawEquals()
|
||||
{
|
||||
JRaw r1 = new JRaw("raw1");
|
||||
JRaw r2 = new JRaw("raw1");
|
||||
JRaw r3 = new JRaw("raw2");
|
||||
|
||||
Assert.IsTrue(JToken.DeepEquals(r1, r2));
|
||||
Assert.IsFalse(JToken.DeepEquals(r1, r3));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RawClone()
|
||||
{
|
||||
JRaw r1 = new JRaw("raw1");
|
||||
JToken r2 = r1.CloneToken();
|
||||
|
||||
CustomAssert.IsInstanceOfType(typeof(JRaw), r2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user