mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Tests: WriteUri(null) for https://github.com/vis2k/Mirror/pull/2796/
This commit is contained in:
parent
e07488d91b
commit
021470360d
@ -916,6 +916,17 @@ public void TestWritingUri()
|
|||||||
Assert.That(reader.ReadUri(), Is.EqualTo(testUri));
|
Assert.That(reader.ReadUri(), Is.EqualTo(testUri));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// URI null support test for https://github.com/vis2k/Mirror/pull/2796/
|
||||||
|
[Test]
|
||||||
|
public void TestWritingNullUri()
|
||||||
|
{
|
||||||
|
NetworkWriter writer = new NetworkWriter();
|
||||||
|
writer.WriteUri(null);
|
||||||
|
|
||||||
|
NetworkReader reader = new NetworkReader(writer.ToArray());
|
||||||
|
Assert.That(reader.ReadUri(), Is.EqualTo(null));
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestList()
|
public void TestList()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user