mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-08 10:49:59 +00:00
csharp: remove reference Microsoft.VisualStudio.QualityTools.UnitTestFramework
This commit is contained in:
parent
05ac2603e6
commit
68a98d3dd0
3 changed files with 15 additions and 43 deletions
|
|
@ -1,28 +1,13 @@
|
|||
#define NUNIT
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
#if !NUNIT
|
||||
#error Currently, Not Supported
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
#else
|
||||
using NUnit.Framework;
|
||||
using TestClass = NUnit.Framework.TestFixtureAttribute;
|
||||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using TestMethod = NUnit.Framework.TestAttribute;
|
||||
#endif
|
||||
|
||||
namespace msgpack.tests
|
||||
{
|
||||
[TestClass]
|
||||
[TestFixture]
|
||||
public class ReaderWriterTests
|
||||
{
|
||||
[TestMethod]
|
||||
[Test]
|
||||
public void SignedNumberTest ()
|
||||
{
|
||||
long[] nums = new long[]{
|
||||
|
|
@ -91,7 +76,7 @@ namespace msgpack.tests
|
|||
}, expectedBytes);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Test]
|
||||
public void UnsignedNumberTest ()
|
||||
{
|
||||
ulong[] nums = new ulong[]{
|
||||
|
|
@ -142,7 +127,7 @@ namespace msgpack.tests
|
|||
}, expectedBytes);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Test]
|
||||
public void NilTest ()
|
||||
{
|
||||
byte[] expectedBytes = new byte[] {
|
||||
|
|
@ -157,7 +142,7 @@ namespace msgpack.tests
|
|||
}, expectedBytes);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Test]
|
||||
public void BooleanTest ()
|
||||
{
|
||||
byte[] expectedBytes = new byte[] {
|
||||
|
|
@ -175,7 +160,7 @@ namespace msgpack.tests
|
|||
}, expectedBytes);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Test]
|
||||
public void FloatingPointTest ()
|
||||
{
|
||||
byte[] expectedBytes = new byte[] {
|
||||
|
|
@ -196,7 +181,7 @@ namespace msgpack.tests
|
|||
}, expectedBytes);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Test]
|
||||
public void RawTest ()
|
||||
{
|
||||
Random rnd = new Random ();
|
||||
|
|
@ -241,7 +226,7 @@ namespace msgpack.tests
|
|||
}, expectedBytes);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Test]
|
||||
public void ArrayMapRawHeaderTest ()
|
||||
{
|
||||
int[] list = new int[] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue