Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions CommonNovel.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommonNovel.Tests", "tests\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommonNovel.Benchmarks", "src\CommonNovel.Benchmarks\CommonNovel.Benchmarks.csproj", "{C782F417-5DCF-4482-8EFB-D54570ABC040}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommonNovel.Export", "src\CommonNovel.Export\CommonNovel.Export.csproj", "{EBD19745-C5BF-4A95-8C53-819096512D9F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommonNovel.Export.Tests", "tests\CommonNovel.Export.NovelIL.Tests\CommonNovel.Export.Tests.csproj", "{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -59,6 +63,30 @@ Global
{C782F417-5DCF-4482-8EFB-D54570ABC040}.Release|x64.Build.0 = Release|Any CPU
{C782F417-5DCF-4482-8EFB-D54570ABC040}.Release|x86.ActiveCfg = Release|Any CPU
{C782F417-5DCF-4482-8EFB-D54570ABC040}.Release|x86.Build.0 = Release|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Debug|x64.ActiveCfg = Debug|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Debug|x64.Build.0 = Debug|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Debug|x86.ActiveCfg = Debug|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Debug|x86.Build.0 = Debug|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Release|Any CPU.Build.0 = Release|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Release|x64.ActiveCfg = Release|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Release|x64.Build.0 = Release|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Release|x86.ActiveCfg = Release|Any CPU
{EBD19745-C5BF-4A95-8C53-819096512D9F}.Release|x86.Build.0 = Release|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Debug|x64.ActiveCfg = Debug|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Debug|x64.Build.0 = Debug|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Debug|x86.ActiveCfg = Debug|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Debug|x86.Build.0 = Debug|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Release|Any CPU.Build.0 = Release|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Release|x64.ActiveCfg = Release|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Release|x64.Build.0 = Release|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Release|x86.ActiveCfg = Release|Any CPU
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -67,6 +95,8 @@ Global
{5717E758-2B46-461F-27F5-9724EAA2920E} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
{AF5365B4-F207-40E4-B1B6-298374455C93} = {0AB3BF05-4346-4AA6-1389-037BE0695223}
{C782F417-5DCF-4482-8EFB-D54570ABC040} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
{EBD19745-C5BF-4A95-8C53-819096512D9F} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
{EDD52A13-666D-4EE6-95B8-37E59F40BAA0} = {0AB3BF05-4346-4AA6-1389-037BE0695223}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1FBD48FA-C758-455E-8E2F-D41EBD6A3754}
Expand Down
13 changes: 13 additions & 0 deletions src/CommonNovel.Export/CommonNovel.Export.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
Comment thread
Lemon73-Computing marked this conversation as resolved.
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AliceProject.NovelIL" Version="0.1.0" />
</ItemGroup>

</Project>
16 changes: 16 additions & 0 deletions src/CommonNovel.Export/NovelIL/NovelILExporter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using NovelIL;

namespace CommonNovel.Export.NovelIL;

public class NovelILExporter
{
public static string Export(string input)
{
return "";
Comment thread
Lemon73-Computing marked this conversation as resolved.
}

// public static Program.NovelILDocument Builder(string input)
// {

// }
Comment thread
Lemon73-Computing marked this conversation as resolved.
}
6 changes: 6 additions & 0 deletions src/CommonNovel.Export/Shared.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace CommonNovel.Export;

// public class Program
// {

// }
Comment thread
Lemon73-Computing marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
Comment thread
Lemon73-Computing marked this conversation as resolved.
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AliceProject.NovelIL" Version="0.1.0" />
<PackageReference Include="coverlet.collector" Version="6.0.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" />
</ItemGroup>

<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\CommonNovel.Export\CommonNovel.Export.csproj" />
</ItemGroup>

</Project>
30 changes: 30 additions & 0 deletions tests/CommonNovel.Export.NovelIL.Tests/Exporter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.Diagnostics.CodeAnalysis;

namespace CommonNovel.Export.NovelIL.Tests;

public class ExporterTest
{
[Fact]
public void NIL_Validation()
{
}
Comment thread
Lemon73-Computing marked this conversation as resolved.

[ExcludeFromCodeCoverage]
public static IEnumerable<object[]> ExporterTestData =>
new List<object[]>
{
new object[] // Ex4.1
{
"[Hi!]",
"""
{
"cells": [
{
"messages": "text"
}
]
}
"""
},
};
Comment thread
Lemon73-Computing marked this conversation as resolved.
}
Loading