We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0ef77 commit 59826fbCopy full SHA for 59826fb
MLAPI.Tests/NetworkingManagerComponents/Binary/BitStreamTest.cs
@@ -27,6 +27,30 @@ public void TestBool()
27
Assert.That(bitStream.Length, Is.EqualTo(100));
28
}
29
30
+ [Test]
31
+ public void TestSetLength()
32
+ {
33
+ BitStream bitStream = new BitStream(4);
34
+ bitStream.SetLength(100);
35
+
36
+ Assert.That(bitStream.Capacity, Is.GreaterThanOrEqualTo(100));
37
+ }
38
39
40
+ public void TestSetLength2()
41
42
43
44
+ bitStream.WriteByte(1);
45
46
47
48
49
+ bitStream.SetLength(0);
50
51
+ Assert.That(bitStream.Position, Is.EqualTo(0));
52
53
54
[Test]
55
public void TestGrow()
56
{
0 commit comments