Code Coverage Statistics for Source File
Newtonsoft.Json.Tests\Linq\JRawTests.cs
Symbol Coverage: 100.00% (10 of 10)
Branch Coverage: 100.00% (3 of 3)
Cyclomatic Complexity Avg: 1.00 Max:1
Code Lines: 10
Symbol Coverage Trend
View:
L | V | Source |
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using NUnit.Framework; |
|
6 |
using Newtonsoft.Json.Linq; |
|
7 |
||
8 |
namespace Newtonsoft.Json.Tests.Linq |
|
9 |
{ |
|
10 |
public class JRawTests : TestFixtureBase |
|
11 |
{ |
|
12 |
[Test] |
|
13 |
public void RawEquals() |
|
14 |
{ |
|
15 |
1 |
JRaw r1 = new JRaw("raw1");
|
16 |
1 |
JRaw r2 = new JRaw("raw1");
|
17 |
1 |
JRaw r3 = new JRaw("raw2");
|
18 |
||
19 |
1 |
Assert.IsTrue(JToken.DeepEquals(r1, r2));
|
20 |
1 |
Assert.IsFalse(JToken.DeepEquals(r1, r3));
|
21 |
1 |
}
|
22 |
||
23 |
[Test] |
|
24 |
public void RawClone() |
|
25 |
{ |
|
26 |
1 |
JRaw r1 = new JRaw("raw1");
|
27 |
1 |
JToken r2 = r1.CloneToken();
|
28 |
||
29 |
1 |
Assert.IsInstanceOfType(typeof(JRaw), r2);
|
30 |
1 |
}
|
31 |
} |
|
32 |
} |