flatbuffers/tests/FlatBuffers.Test
Stefan F b5802b57f2
Fix [C#] Object API - Invalid Property Name used in UnPackTo for unio… (#7751)
* 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>
2023-01-07 12:37:22 -08:00
..
Properties
.gitignore [C#] Cleaned up .NET testing script for Mono (#6016) 2020-08-17 13:10:10 -07:00
Assert.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
ByteBufferTests.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
FlatBufferBuilderTests.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
FlatBuffers.Core.Test.csproj Fix [C#] Object API - Invalid Property Name used in UnPackTo for unio… (#7751) 2023-01-07 12:37:22 -08:00
FlatBuffers.Test.csproj Updated Newtonsoft.Json to 13.0.1 (#7393) 2022-07-26 13:22:18 -07:00
FlatBuffersExampleTests.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
FlatBuffersFuzzTests.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
FlatBuffersTestClassAttribute.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
FlatBuffersTestMethodAttribute.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
FuzzTestData.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
Lcg.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
NetTest.bat Adds NetTest.bat to run .NET Core tests on Windows (#6216) 2020-10-27 22:51:58 -07:00
NetTest.sh [C#] Use @ for keyword escaping (#6834) 2021-09-09 10:29:27 -07:00
Program.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
README.md [C#] Cleaned up .NET testing script for Mono (#6016) 2020-08-17 13:10:10 -07:00
TestTable.cs [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
clean.sh [C#] Cleaned up .NET testing script for Mono (#6016) 2020-08-17 13:10:10 -07:00
packages.config Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /tests/FlatBuffers.Test (#7363) 2022-06-23 15:03:07 -04:00

README.md

.NET Tests

Running on Linux

Prerequisites

To run the tests on a Linux a few prerequisites are needed:

  1. mono
  2. 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.