- Upgraded NUnit
- Added StatLight and Silverlight unit testing
- Added copies of all projects for Silverlight
- Integrated Silverlight unit tests in build
diff --git a/src/ProtocolBuffers.Test/TestReaderForUrlEncoded.cs b/src/ProtocolBuffers.Test/TestReaderForUrlEncoded.cs
index 7861e98..1c43e24 100644
--- a/src/ProtocolBuffers.Test/TestReaderForUrlEncoded.cs
+++ b/src/ProtocolBuffers.Test/TestReaderForUrlEncoded.cs
@@ -1,16 +1,16 @@
using System;
using System.IO;
using System.Text;
-using NUnit.Framework;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
using Google.ProtocolBuffers.TestProtos;
using Google.ProtocolBuffers.Serialization.Http;
namespace Google.ProtocolBuffers
{
- [TestFixture]
+ [TestClass]
public class TestReaderForUrlEncoded
{
- [Test]
+ [TestMethod]
public void Example_FromQueryString()
{
Uri sampleUri = new Uri("http://sample.com/Path/File.ext?text=two+three%20four&valid=true&numbers=1&numbers=2", UriKind.Absolute);
@@ -28,7 +28,7 @@
Assert.AreEqual(2, message.NumbersList[1]);
}
- [Test]
+ [TestMethod]
public void Example_FromFormData()
{
Stream rawPost = new MemoryStream(Encoding.UTF8.GetBytes("text=two+three%20four&valid=true&numbers=1&numbers=2"), false);
@@ -46,7 +46,7 @@
Assert.AreEqual(2, message.NumbersList[1]);
}
- [Test]
+ [TestMethod]
public void TestEmptyValues()
{
ICodedInputStream input = FormUrlEncodedReader.CreateInstance("valid=true&text=&numbers=1");
@@ -60,7 +60,7 @@
Assert.AreEqual(1, builder.NumbersList[0]);
}
- [Test]
+ [TestMethod]
public void TestNoValue()
{
ICodedInputStream input = FormUrlEncodedReader.CreateInstance("valid=true&text&numbers=1");
@@ -74,7 +74,7 @@
Assert.AreEqual(1, builder.NumbersList[0]);
}
- [Test, ExpectedException(typeof(NotSupportedException))]
+ [TestMethod, ExpectedException(typeof(NotSupportedException))]
public void FormUrlEncodedReaderDoesNotSupportChildren()
{
ICodedInputStream input = FormUrlEncodedReader.CreateInstance("child=uh0");