-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
@@ -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