diff options
author | Jon Skeet <jonskeet@google.com> | 2015-04-30 11:05:36 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-04-30 11:29:35 +0100 |
commit | c56475088d2d36d29a2640f35b9a8621796c051c (patch) | |
tree | eee4106598d0faf92b566f7e03930f25df38a56c /csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs | |
parent | ce97e686826147e2a071fd2321555f7d40ec5d93 (diff) | |
download | protobuf-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/NUnit-config/Microsoft.VisualStudio.TestTools.cs')
-rw-r--r-- | csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs | 54 |
1 files changed, 0 insertions, 54 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 |