mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-04-21 02:26:31 +02:00
Test for success on Schema.capnp.
This commit is contained in:
parent
2b3d833f6d
commit
1aff615036
10
capnpc-csharp.tests/Properties/Resources.Designer.cs
generated
10
capnpc-csharp.tests/Properties/Resources.Designer.cs
generated
@ -60,6 +60,16 @@ namespace capnpc_csharp.Tests.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
|
/// </summary>
|
||||||
|
internal static byte[] schema_with_offsets_capnp {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("schema_with_offsets_capnp", resourceCulture);
|
||||||
|
return ((byte[])(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -133,4 +133,7 @@
|
|||||||
<data name="UnitTest1_capnp" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="UnitTest1_capnp" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\UnitTest1.capnp.bin;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>..\Resources\UnitTest1.capnp.bin;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="schema_with_offsets_capnp" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\schema-with-offsets.capnp.bin;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
BIN
capnpc-csharp.tests/Resources/schema-with-offsets.capnp.bin
Normal file
BIN
capnpc-csharp.tests/Resources/schema-with-offsets.capnp.bin
Normal file
Binary file not shown.
@ -80,6 +80,15 @@ namespace CapnpC
|
|||||||
// Should not throw
|
// Should not throw
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void Test30SchemaCapnp()
|
||||||
|
{
|
||||||
|
var model = Load(Resources.schema_with_offsets_capnp);
|
||||||
|
var codeGen = NewGeneratorFor(model);
|
||||||
|
codeGen.Transform(model.FilesToGenerate.First());
|
||||||
|
// Should not throw
|
||||||
|
}
|
||||||
|
|
||||||
static Generator.CodeGenerator NewGeneratorFor(Model.SchemaModel model)
|
static Generator.CodeGenerator NewGeneratorFor(Model.SchemaModel model)
|
||||||
=> new Generator.CodeGenerator(model, new Generator.GeneratorOptions());
|
=> new Generator.CodeGenerator(model, new Generator.GeneratorOptions());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user