From 84385bbecd848197a162cc93e7695c8667863be1 Mon Sep 17 00:00:00 2001 From: Kuba Ober Date: Thu, 29 Aug 2019 11:57:37 -0400 Subject: [PATCH] Test annotations and constants in schemas processed for generation. --- .../Properties/Resources.Designer.cs | 10 ++++++++++ capnpc-csharp.tests/Properties/Resources.resx | 3 +++ .../Resources/UnitTest20.capnp.bin | Bin 0 -> 736 bytes capnpc-csharp.tests/UnitTest20.capnp | 5 +++++ capnpc-csharp.tests/UnitTests.cs | 9 +++++++++ 5 files changed, 27 insertions(+) create mode 100644 capnpc-csharp.tests/Resources/UnitTest20.capnp.bin create mode 100644 capnpc-csharp.tests/UnitTest20.capnp diff --git a/capnpc-csharp.tests/Properties/Resources.Designer.cs b/capnpc-csharp.tests/Properties/Resources.Designer.cs index ad396a7..65b57b9 100644 --- a/capnpc-csharp.tests/Properties/Resources.Designer.cs +++ b/capnpc-csharp.tests/Properties/Resources.Designer.cs @@ -90,6 +90,16 @@ namespace capnpc_csharp.Tests.Properties { } } + /// + /// Looks up a localized resource of type System.Byte[]. + /// + internal static byte[] UnitTest20_capnp { + get { + object obj = ResourceManager.GetObject("UnitTest20_capnp", resourceCulture); + return ((byte[])(obj)); + } + } + /// /// Looks up a localized resource of type System.Byte[]. /// diff --git a/capnpc-csharp.tests/Properties/Resources.resx b/capnpc-csharp.tests/Properties/Resources.resx index 43736d8..5c256ea 100644 --- a/capnpc-csharp.tests/Properties/Resources.resx +++ b/capnpc-csharp.tests/Properties/Resources.resx @@ -121,6 +121,9 @@ ..\Resources\UnitTest10.capnp.bin;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\UnitTest20.capnp.bin;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + ..\Resources\UnitTest3.capnp.bin;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 diff --git a/capnpc-csharp.tests/Resources/UnitTest20.capnp.bin b/capnpc-csharp.tests/Resources/UnitTest20.capnp.bin new file mode 100644 index 0000000000000000000000000000000000000000..48f5e96c07e29ed4b7740691d998d795288f8924 GIT binary patch literal 736 zcmZQzU|@&_VhCVi5CkUtNHfmj~MW&vU#lR*$j_ycJM26iyX10-1)*cc|2WUWZ7 z+I@~2EQ*`R1xj@RaVZe1<5mWjdFP!f)AZ!QIgoo;fi8gA16KfL6awi_KwJyN5SKwD zDu5I-*yRvDjI5V(w0`EX-~z~8kl%2bn+cS=1;iltBAZ(P new Generator.CodeGenerator(model, new Generator.GeneratorOptions());