remove NetworkReader/WriterPoolTests. Pool<T> is already tested.

This commit is contained in:
vis2k 2021-05-13 12:51:33 +08:00
parent d22e4387a0
commit f5a856abc1
4 changed files with 0 additions and 69 deletions

View File

@ -1,24 +0,0 @@
using System;
using NUnit.Framework;
namespace Mirror.Tests
{
public class NetworkReaderPoolTest
{
[Test]
public void TestPoolRecycling()
{
object firstReader;
using (PooledNetworkReader Reader = NetworkReaderPool.GetReader(default(ArraySegment<byte>)))
{
firstReader = Reader;
}
using (PooledNetworkReader Reader = NetworkReaderPool.GetReader(default(ArraySegment<byte>)))
{
Assert.That(Reader, Is.SameAs(firstReader), "Pool should reuse the Reader");
}
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: b3be8a791c407cb4b9e2d4e1037b8cfe
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,23 +0,0 @@
using NUnit.Framework;
namespace Mirror.Tests
{
public class NetworkWriterPoolTest
{
[Test]
public void TestPoolRecycling()
{
object firstWriter;
using (PooledNetworkWriter writer = NetworkWriterPool.GetWriter())
{
firstWriter = writer;
}
using (PooledNetworkWriter writer = NetworkWriterPool.GetWriter())
{
Assert.That(writer, Is.SameAs(firstWriter), "Pool should reuse the writer");
}
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: d11bb8e42a76bf248892f8b398b0dd57
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: