mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 18:58:06 +00:00
[C#] Fix FlatBuffers.Tests when ENABLE_SPAN_T is defined (#5182)
There is a test code error that causes the CanReadCppGeneratedWireFile test to fail when ENABLE_SPAN_T is defined. When TestarrayofboolsLength is not 0, then the GetTestarrayofboolsBytes() should have a length.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
6980818337
commit
b650dfba49
@@ -258,7 +258,7 @@ namespace FlatBuffers.Test
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Assert.IsTrue(monster.GetTestarrayofboolsBytes().Length == 0);
|
Assert.IsTrue(monster.GetTestarrayofboolsBytes().Length != 0);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
var nameBytes = monster.GetNameBytes().Value;
|
var nameBytes = monster.GetNameBytes().Value;
|
||||||
|
|||||||
Reference in New Issue
Block a user