aboutsummaryrefslogtreecommitdiff
path: root/csharp/lib
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-04-30 11:05:36 +0100
committerJon Skeet <jonskeet@google.com>2015-04-30 11:29:35 +0100
commitc56475088d2d36d29a2640f35b9a8621796c051c (patch)
treeeee4106598d0faf92b566f7e03930f25df38a56c /csharp/lib
parentce97e686826147e2a071fd2321555f7d40ec5d93 (diff)
downloadprotobuf-c56475088d2d36d29a2640f35b9a8621796c051c.tar.gz
protobuf-c56475088d2d36d29a2640f35b9a8621796c051c.tar.bz2
protobuf-c56475088d2d36d29a2640f35b9a8621796c051c.zip
Change to using xUnit for all unit tests, and fetch that via NuGet.
This includes fetching the VS unit test runner package, so that tests can be run from Visual Studio's Test Explorer.
Diffstat (limited to 'csharp/lib')
-rw-r--r--csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs54
-rw-r--r--csharp/lib/NUnit-config/nunit-console.v2.0.config18
-rw-r--r--csharp/lib/NUnit-config/nunit-console.v3.5.config18
-rw-r--r--csharp/lib/NUnit-config/nunit-console.v4.0.config18
4 files changed, 0 insertions, 108 deletions
diff --git a/csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs b/csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs
deleted file mode 100644
index fd151dae..00000000
--- a/csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-
-using System;
-#if CLIENTPROFILE
-namespace Microsoft.VisualStudio.TestTools.UnitTesting
-{
- [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
- public sealed class TestClassAttribute : NUnit.Framework.TestFixtureAttribute
- {
- }
-
- [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
- public sealed class TestMethodAttribute : NUnit.Framework.TestAttribute
- {
- }
-
- [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
- public sealed class TestInitializeAttribute : NUnit.Framework.SetUpAttribute
- {
- }
-
- [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
- public sealed class IgnoreAttribute : NUnit.Framework.IgnoreAttribute
- {
- }
-
- [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
- public sealed class ExpectedExceptionAttribute : NUnit.Framework.ExpectedExceptionAttribute
- {
- public ExpectedExceptionAttribute(Type type) : base(type)
- { }
- }
-
- public class Assert : NUnit.Framework.Assert
- {
- [Obsolete("Do not use AreEqual on Byte[], use TestUtil.AssertBytesEqual(,)")]
- public static void AreEqual(byte[] b1, byte[] b2)
- {
- NUnit.Framework.Assert.AreEqual(b1, b2);
- }
-
- [Obsolete("No not use assert with miss-matched types.")]
- public static new void AreEqual(object b1, object b2)
- {
- NUnit.Framework.Assert.AreEqual(b1, b2);
- }
-
- //Allowed if the types match
- public static void AreEqual<T>(T b1, T b2)
- {
- NUnit.Framework.Assert.AreEqual(b1, b2);
- }
- }
-}
-#endif \ No newline at end of file
diff --git a/csharp/lib/NUnit-config/nunit-console.v2.0.config b/csharp/lib/NUnit-config/nunit-console.v2.0.config
deleted file mode 100644
index 30453c9b..00000000
--- a/csharp/lib/NUnit-config/nunit-console.v2.0.config
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<configuration>
-
- <startup>
- <requiredRuntime version="v2.0.50727" />
- </startup>
-
- <runtime>
- <!-- We need this so test exceptions don't crash NUnit -->
- <legacyUnhandledExceptionPolicy enabled="1" />
-
- <!-- Look for addins in the addins directory for now -->
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <probing privatePath="lib;addins"/>
- </assemblyBinding>
- </runtime>
-
-</configuration> \ No newline at end of file
diff --git a/csharp/lib/NUnit-config/nunit-console.v3.5.config b/csharp/lib/NUnit-config/nunit-console.v3.5.config
deleted file mode 100644
index 30453c9b..00000000
--- a/csharp/lib/NUnit-config/nunit-console.v3.5.config
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<configuration>
-
- <startup>
- <requiredRuntime version="v2.0.50727" />
- </startup>
-
- <runtime>
- <!-- We need this so test exceptions don't crash NUnit -->
- <legacyUnhandledExceptionPolicy enabled="1" />
-
- <!-- Look for addins in the addins directory for now -->
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <probing privatePath="lib;addins"/>
- </assemblyBinding>
- </runtime>
-
-</configuration> \ No newline at end of file
diff --git a/csharp/lib/NUnit-config/nunit-console.v4.0.config b/csharp/lib/NUnit-config/nunit-console.v4.0.config
deleted file mode 100644
index 08ee9547..00000000
--- a/csharp/lib/NUnit-config/nunit-console.v4.0.config
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<configuration>
-
- <startup useLegacyV2RuntimeActivationPolicy="true">
- <requiredRuntime version="v4.0.30319" safemode="true"/>
- </startup>
-
- <runtime>
- <!-- We need this so test exceptions don't crash NUnit -->
- <legacyUnhandledExceptionPolicy enabled="1" />
-
- <!-- Look for addins in the addins directory for now -->
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <probing privatePath="lib;addins"/>
- </assemblyBinding>
- </runtime>
-
-</configuration> \ No newline at end of file