From 98b4b6e355e1689e89f8e954f4cc35cbb6fb9a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6llner?= Date: Wed, 2 Oct 2019 16:06:12 +0200 Subject: [PATCH] Added code to MsBuildGenerationTest --- MsBuildGenerationTest/Program.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MsBuildGenerationTest/Program.cs b/MsBuildGenerationTest/Program.cs index b07986b..bbbb50b 100644 --- a/MsBuildGenerationTest/Program.cs +++ b/MsBuildGenerationTest/Program.cs @@ -6,7 +6,16 @@ namespace MsBuildGenerationTest { static void Main(string[] args) { - Console.WriteLine("Hello World!"); + // Instantiate some generated classes ensures that they are really present. + // Note that this code is not supposed to test runtime behavior, we have plenty of other test cases for that purpose. + + var vatId = new Capnp.Rpc.Twoparty.VatId(); + var msg = new Capnp.Rpc.Message(); + var node = new Capnp.Schema.Node(); + var x = Capnproto_test.Capnp.Test.TestEnum.garply; + var imp = new CapnpGen.TestImport(); + var imp2 = new CapnpGen.TestImport2(); + var book = new CapnpGen.AddressBook(); } } }