mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
remove NetworkReader/WriterPoolTests. Pool<T> is already tested.
This commit is contained in:
parent
d22e4387a0
commit
f5a856abc1
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b3be8a791c407cb4b9e2d4e1037b8cfe
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d11bb8e42a76bf248892f8b398b0dd57
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user