diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-04-17 14:15:52 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-04-17 14:15:52 -0700 |
commit | 01c8c35ca3d3424a9473dd22ea2456933b3e8d36 (patch) | |
tree | de582cb9ef3e449f24015dec09f80e998806b26a /csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs | |
parent | 813d6d652d8091e9365bfbd01efb5f2ee8bdfbce (diff) | |
parent | 1eab56aee8dddcb656db67d9fb87a8cc6a2ac112 (diff) | |
download | protobuf-01c8c35ca3d3424a9473dd22ea2456933b3e8d36.tar.gz protobuf-01c8c35ca3d3424a9473dd22ea2456933b3e8d36.tar.bz2 protobuf-01c8c35ca3d3424a9473dd22ea2456933b3e8d36.zip |
Merge pull request #2 from jtattermusch/csharp_protobuf_imported
Pulling protobuf-csharp-port into csharp/ directory
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, 54 insertions, 0 deletions
diff --git a/csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs b/csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs new file mode 100644 index 00000000..fd151dae --- /dev/null +++ b/csharp/lib/NUnit-config/Microsoft.VisualStudio.TestTools.cs @@ -0,0 +1,54 @@ +
+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 |