You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
parent
5f4a27cc8a
commit
7d05485754
@@ -51,7 +51,6 @@ using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: NeutralResourcesLanguage ("en-US")]
|
||||
[assembly: AssemblyDelaySign (true)]
|
||||
[assembly: AssemblyKeyFile ("../winfx.pub")]
|
||||
|
||||
[assembly: ComVisible (false)]
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ include ../../build/rules.make
|
||||
|
||||
LIBRARY = System.Json.dll
|
||||
LIB_REFS = System System.Xml System.Core
|
||||
KEYFILE = ../winfx.pub
|
||||
LIB_MCS_FLAGS =
|
||||
|
||||
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
|
||||
|
||||
@@ -45,9 +45,6 @@ namespace System.Json
|
||||
|
||||
public void Add (JsonValue item)
|
||||
{
|
||||
if (item == null)
|
||||
throw new ArgumentNullException ("item");
|
||||
|
||||
list.Add (item);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,9 @@ namespace MonoTests.System
|
||||
Assert.AreEqual (JsonType.Array, j.JsonType, "type");
|
||||
var str = j.ToString ();
|
||||
Assert.AreEqual (str, "[1, 2, 3, null]");
|
||||
((JsonArray) j).Add (null);
|
||||
str = j.ToString ();
|
||||
Assert.AreEqual (str, "[1, 2, 3, null, null]");
|
||||
}
|
||||
|
||||
// Test that we correctly serialize JsonObject with null elements.
|
||||
|
||||
Reference in New Issue
Block a user