.sln reorganization

master
Harald Wolff 2020-11-25 23:23:46 +01:00
parent 079d1ae586
commit 94fb19cba1
30 changed files with 98 additions and 5 deletions

48
ln.json.sln 100644
View File

@ -0,0 +1,48 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ln.json", "ln.json\ln.json.csproj", "{E756C797-C72B-45C0-8DB2-3594CE3C00A6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ln.json.tests", "ln.json.tests\ln.json.tests.csproj", "{0F450BF8-225C-4230-AF01-0E628A00E986}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Debug|x64.ActiveCfg = Debug|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Debug|x64.Build.0 = Debug|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Debug|x86.ActiveCfg = Debug|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Debug|x86.Build.0 = Debug|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Release|Any CPU.Build.0 = Release|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Release|x64.ActiveCfg = Release|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Release|x64.Build.0 = Release|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Release|x86.ActiveCfg = Release|Any CPU
{E756C797-C72B-45C0-8DB2-3594CE3C00A6}.Release|x86.Build.0 = Release|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Debug|x64.ActiveCfg = Debug|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Debug|x64.Build.0 = Debug|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Debug|x86.ActiveCfg = Debug|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Debug|x86.Build.0 = Debug|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Release|Any CPU.Build.0 = Release|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Release|x64.ActiveCfg = Release|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Release|x64.Build.0 = Release|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Release|x86.ActiveCfg = Release|Any CPU
{0F450BF8-225C-4230-AF01-0E628A00E986}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,29 @@
using NUnit.Framework;
namespace ln.json.tests
{
public class JSONTests
{
[SetUp]
public void Setup()
{
}
[Test]
public void Test_00_Primitives()
{
JSONValue jsonFloat = JSONParser.Parse("1234.564");
Assert.IsTrue(jsonFloat is JSONNumber);
Assert.AreEqual(1234.564, jsonFloat.ToNative());
JSONValue jsonInteger = JSONParser.Parse("635462");
Assert.IsTrue(jsonFloat is JSONNumber);
Assert.AreEqual(635462, jsonInteger.ToNative());
Assert.Pass();
}
}
}

View File

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ln.json\ln.json.csproj" />
</ItemGroup>
</Project>

View File

@ -12,12 +12,9 @@
<FileVersion>0.1.0.0</FileVersion>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ln.collections\ln.collections.csproj" />
<ProjectReference Include="..\ln.type\ln.type.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Runtime" Version="4.3.1" />
<PackageReference Include="ln.type" Version="0.1.1" />
<PackageReference Include="ln.collections" Version="0.1.2" />
</ItemGroup>
</Project>