2019-10-02 14:36:31 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace MsBuildGenerationTest
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2019-10-02 16:06:12 +02:00
|
|
|
|
// 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.
|
|
|
|
|
|
2020-01-22 22:21:11 +01:00
|
|
|
|
void use(object x)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-02 16:06:12 +02:00
|
|
|
|
var vatId = new Capnp.Rpc.Twoparty.VatId();
|
2020-01-22 22:21:11 +01:00
|
|
|
|
use(vatId);
|
2019-10-02 16:06:12 +02:00
|
|
|
|
var msg = new Capnp.Rpc.Message();
|
2020-01-22 22:21:11 +01:00
|
|
|
|
use(msg);
|
2019-10-02 16:06:12 +02:00
|
|
|
|
var node = new Capnp.Schema.Node();
|
2020-01-22 22:21:11 +01:00
|
|
|
|
use(node);
|
2019-10-02 16:06:12 +02:00
|
|
|
|
var x = Capnproto_test.Capnp.Test.TestEnum.garply;
|
2020-01-22 22:21:11 +01:00
|
|
|
|
use(x);
|
2019-10-02 16:06:12 +02:00
|
|
|
|
var imp = new CapnpGen.TestImport();
|
2020-01-22 22:21:11 +01:00
|
|
|
|
use(imp);
|
2019-10-02 16:06:12 +02:00
|
|
|
|
var imp2 = new CapnpGen.TestImport2();
|
2020-01-22 22:21:11 +01:00
|
|
|
|
use(imp2);
|
2019-10-02 16:06:12 +02:00
|
|
|
|
var book = new CapnpGen.AddressBook();
|
2020-01-22 22:21:11 +01:00
|
|
|
|
use(book);
|
2019-10-02 14:36:31 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|