mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 01:26:30 +00:00
add Annotator
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Azaion.Annotator\Azaion.Annotator.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
|
||||
<PackageReference Include="xunit" Version="2.8.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,20 @@
|
||||
using Azaion.Annotator.DTO;
|
||||
using Xunit;
|
||||
|
||||
namespace Azaion.Annotator.Test;
|
||||
|
||||
public class DictTest
|
||||
{
|
||||
public Dictionary<string, List<AnnotationInfo>> Annotations = new();
|
||||
|
||||
[Fact]
|
||||
public void DictAddTest()
|
||||
{
|
||||
Annotations["sd"] = [new AnnotationInfo(1, 2, 2, 2, 2)];
|
||||
Annotations["sd"] =
|
||||
[
|
||||
new AnnotationInfo(1, 2, 2, 2, 2),
|
||||
new AnnotationInfo(0, 1, 3, 2, 1)
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user