![]() * Fix [C#] Object API - Invalid Property Name used in UnPackTo for union fieldhttps://github.com/google/flatbuffers/issues/7750, also fixes invalid Code generated in WriteJson for Unions named Value. * Test added: new schema union_value_collision.fbs with a Union named Value and a union field named value. The generated C# code now compiles when NetTest.bat. The Code generated with an older flatc.exe didn't compile because of a mismatch of the property name (Value vs. Value_). * branch was not up-to-date with master * BASE_OPTS + CPP_OPTS removed and union_value_collision_generated.h deleted Co-authored-by: Derek Bailey <derekbailey@google.com> |
||
---|---|---|
.. | ||
Properties | ||
.gitignore | ||
Assert.cs | ||
ByteBufferTests.cs | ||
FlatBufferBuilderTests.cs | ||
FlatBuffers.Core.Test.csproj | ||
FlatBuffers.Test.csproj | ||
FlatBuffersExampleTests.cs | ||
FlatBuffersFuzzTests.cs | ||
FlatBuffersTestClassAttribute.cs | ||
FlatBuffersTestMethodAttribute.cs | ||
FuzzTestData.cs | ||
Lcg.cs | ||
NetTest.bat | ||
NetTest.sh | ||
Program.cs | ||
README.md | ||
TestTable.cs | ||
clean.sh | ||
packages.config |
README.md
.NET Tests
Running on Linux
Prerequisites
To run the tests on a Linux a few prerequisites are needed:
- mono
- msbuild
Running
To run the tests:
./NetTest.sh
This will download the .NET installer and core SDK if those are not already
installed. Then it will build the tests using msbuild
and run the resulting
test binary with mono
.
After running the tests, the downloaded .NET installer and SDK are not removed as they can be reused in subsequent invocations. The files are ignored by git by default, and can remain in the working directory.
Cleaning
If you want to clean up the downloaded .NET installer and SDK, run:
./clean.sh
This will wipe away the downloaded files and directories. Those will be
automatically re-downloaded when running NetTest.sh
.