-Cleanup unit test project compiler warnings
This commit is contained in:
@@ -575,7 +575,7 @@ now brown cow?", '"', true);
|
|||||||
{
|
{
|
||||||
Assert.AreEqual(value, parsed);
|
Assert.AreEqual(value, parsed);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
long valueTicks = GetTicks(value);
|
long valueTicks = GetTicks(value);
|
||||||
long parsedTicks = GetTicks(parsed);
|
long parsedTicks = GetTicks(parsed);
|
||||||
@@ -601,7 +601,7 @@ now brown cow?", '"', true);
|
|||||||
{
|
{
|
||||||
Assert.AreEqual(value, parsed);
|
Assert.AreEqual(value, parsed);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
// JavaScript ticks aren't as precise, recheck after rounding
|
// JavaScript ticks aren't as precise, recheck after rounding
|
||||||
long valueTicks = GetTicks(value);
|
long valueTicks = GetTicks(value);
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ namespace Newtonsoft.Json.Tests.Linq
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void ToString()
|
public void JValueToString()
|
||||||
{
|
{
|
||||||
JValue v;
|
JValue v;
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
#if !NETFX_CORE
|
#if !NETFX_CORE
|
||||||
using System.IO;
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
#else
|
#else
|
||||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||||
|
|||||||
@@ -772,7 +772,6 @@ namespace Newtonsoft.Json.Tests
|
|||||||
public void JObjectToString()
|
public void JObjectToString()
|
||||||
{
|
{
|
||||||
JObject test = JObject.Parse(JsonText);
|
JObject test = JObject.Parse(JsonText);
|
||||||
IsoDateTimeConverter isoDateTimeConverter = null; // = new IsoDateTimeConverter();
|
|
||||||
|
|
||||||
TimeOperation<object>(() =>
|
TimeOperation<object>(() =>
|
||||||
{
|
{
|
||||||
@@ -789,7 +788,6 @@ namespace Newtonsoft.Json.Tests
|
|||||||
public void JObjectToString2()
|
public void JObjectToString2()
|
||||||
{
|
{
|
||||||
JObject test = JObject.Parse(JsonText);
|
JObject test = JObject.Parse(JsonText);
|
||||||
IsoDateTimeConverter isoDateTimeConverter = null; // = new IsoDateTimeConverter();
|
|
||||||
MemoryStream ms = new MemoryStream();
|
MemoryStream ms = new MemoryStream();
|
||||||
|
|
||||||
TimeOperation<object>(() =>
|
TimeOperation<object>(() =>
|
||||||
|
|||||||
@@ -7311,7 +7311,7 @@ Parameter name: value",
|
|||||||
|
|
||||||
internal class Bb : Aa
|
internal class Bb : Aa
|
||||||
{
|
{
|
||||||
public bool no;
|
public new bool no;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !(NET35 || NET20 || SILVERLIGHT || WINDOWS_PHONE)
|
#if !(NET35 || NET20 || SILVERLIGHT || WINDOWS_PHONE)
|
||||||
|
|||||||
@@ -1497,6 +1497,14 @@ namespace Newtonsoft.Json.Tests.Serialization
|
|||||||
|
|
||||||
return Equals(w.Content, Content);
|
return Equals(w.Content, Content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
if (Content == null)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return Content.GetHashCode();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface IExample
|
public interface IExample
|
||||||
@@ -1542,6 +1550,14 @@ namespace Newtonsoft.Json.Tests.Serialization
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
if (Name == null)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return Name.GetHashCode();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ namespace Newtonsoft.Json.Serialization
|
|||||||
/// <value>The <see cref="Type"/> of the collection items.</value>
|
/// <value>The <see cref="Type"/> of the collection items.</value>
|
||||||
public Type CollectionItemType { get; private set; }
|
public Type CollectionItemType { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets a value indicating whether the collection type is a multidimensional array.
|
||||||
|
/// </summary>
|
||||||
|
/// <value><c>true</c> if the collection type is a multidimensional array; otherwise, <c>false</c>.</value>
|
||||||
public bool IsMultidimensionalArray { get; private set; }
|
public bool IsMultidimensionalArray { get; private set; }
|
||||||
|
|
||||||
private readonly bool _isCollectionItemTypeNullableType;
|
private readonly bool _isCollectionItemTypeNullableType;
|
||||||
|
|||||||
Reference in New Issue
Block a user