Commit b650dfba authored by Eric Erhardt's avatar Eric Erhardt Committed by Wouter van Oortmerssen

[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.
parent 69808183
...@@ -258,7 +258,7 @@ namespace FlatBuffers.Test ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment