-Code reformat
This commit is contained in:
@@ -35,36 +35,36 @@ using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Newtonsoft.Json.Tests.Linq
|
||||
{
|
||||
[TestFixture]
|
||||
public class JRawTests : TestFixtureBase
|
||||
{
|
||||
[Test]
|
||||
public void RawEquals()
|
||||
[TestFixture]
|
||||
public class JRawTests : TestFixtureBase
|
||||
{
|
||||
JRaw r1 = new JRaw("raw1");
|
||||
JRaw r2 = new JRaw("raw1");
|
||||
JRaw r3 = new JRaw("raw2");
|
||||
[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));
|
||||
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);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RawToObject()
|
||||
{
|
||||
JRaw r1 = new JRaw("1");
|
||||
int i = r1.ToObject<int>();
|
||||
|
||||
Assert.AreEqual(1, i);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RawClone()
|
||||
{
|
||||
JRaw r1 = new JRaw("raw1");
|
||||
JToken r2 = r1.CloneToken();
|
||||
|
||||
CustomAssert.IsInstanceOfType(typeof(JRaw), r2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RawToObject()
|
||||
{
|
||||
JRaw r1 = new JRaw("1");
|
||||
int i = r1.ToObject<int>();
|
||||
|
||||
Assert.AreEqual(1, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user