-Added additional frameworks to project.json files

This commit is contained in:
James Newton-King
2015-08-22 19:08:40 +12:00
parent 6b02abe20c
commit a9ea63da59
142 changed files with 1090 additions and 222 deletions
@@ -23,12 +23,19 @@
// OTHER DEALINGS IN THE SOFTWARE.
#endregion
#if !NET20
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
#if DNXCORE50
using Xunit;
using Test = Xunit.FactAttribute;
using Assert = Newtonsoft.Json.Tests.XUnitAssert;
#else
using NUnit.Framework;
#endif
namespace Newtonsoft.Json.Tests.Documentation.Samples.Xml
{
@@ -84,4 +91,6 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Xml
</Root>", node.ToString());
}
}
}
}
#endif
@@ -25,10 +25,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
#if DNXCORE50
using Xunit;
using Test = Xunit.FactAttribute;
using Assert = Newtonsoft.Json.Tests.XUnitAssert;
#else
using NUnit.Framework;
#endif
#if !(DNXCORE50 || NET20)
namespace Newtonsoft.Json.Tests.Documentation.Samples.Xml
{
@@ -38,7 +45,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Xml
[Test]
public void Example()
{
#region Usage
#region Usage
string xml = @"<?xml version='1.0' standalone='no'?>
<root>
<person id='1'>
@@ -77,9 +84,11 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Xml
// ]
// }
// }
#endregion
#endregion
Assert.AreEqual(@"{""?xml"":{""@version"":""1.0"",""@standalone"":""no""},""root"":{""person"":[{""@id"":""1"",""name"":""Alan"",""url"":""http://www.google.com""},{""@id"":""2"",""name"":""Louis"",""url"":""http://www.yahoo.com""}]}}", json);
}
}
}
}
#endif
@@ -25,10 +25,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
#if DNXCORE50
using Xunit;
using Test = Xunit.FactAttribute;
using Assert = Newtonsoft.Json.Tests.XUnitAssert;
#else
using NUnit.Framework;
#endif
#if !(NET20 || DNXCORE50)
namespace Newtonsoft.Json.Tests.Documentation.Samples.Xml
{
@@ -87,4 +94,6 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Xml
Assert.AreEqual(@"{""person"":{""@id"":""1"",""name"":""Alan"",""url"":""http://www.google.com"",""role"":[""Admin""]}}", json);
}
}
}
}
#endif