This commit is contained in:
vis2k 2021-06-30 10:54:43 +08:00
parent e07488d91b
commit 021470360d

View File

@ -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()
{ {