mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
Move unit tests to the capnpc_csharp.Tests namespace.
This commit is contained in:
parent
68df661e63
commit
ffd018b2a4
@ -1,15 +1,16 @@
|
|||||||
using capnpc_csharp.Tests;
|
|
||||||
using Capnp;
|
using Capnp;
|
||||||
|
using Model = CapnpC.Model;
|
||||||
|
using Generator = CapnpC.Generator;
|
||||||
|
using CodeGeneratorRequest = CapnpC.Schema.CodeGeneratorRequest;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace CapnpC
|
namespace capnpc_csharp.Tests
|
||||||
{
|
{
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class UnitTests
|
public class CodeGeneratorUnitTests
|
||||||
{
|
{
|
||||||
static readonly Dictionary<int, string> GeneratedCode = new Dictionary<int, string>();
|
static readonly Dictionary<int, string> GeneratedCode = new Dictionary<int, string>();
|
||||||
|
|
||||||
@ -146,7 +147,7 @@ namespace CapnpC
|
|||||||
segments = Framing.ReadSegments(input);
|
segments = Framing.ReadSegments(input);
|
||||||
}
|
}
|
||||||
var dec = DeserializerState.CreateRoot(segments);
|
var dec = DeserializerState.CreateRoot(segments);
|
||||||
var reader = Schema.CodeGeneratorRequest.Reader.Create(dec);
|
var reader = CodeGeneratorRequest.Reader.Create(dec);
|
||||||
var model = Model.SchemaModel.Create(reader);
|
var model = Model.SchemaModel.Create(reader);
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user