Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initial tests scaffold #36

Merged
merged 1 commit into from
Oct 12, 2024
Merged
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
4 changes: 3 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<PackageVersion Include="Avalonia.Diagnostics" Version="11.0.10" />
<PackageVersion Include="Avalonia.ReactiveUI" Version="11.0.10" />
<PackageVersion Include="Bogus" Version="35.5.1" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="DynamicData" Version="8.4.1" />
<PackageVersion Include="TUnit" Version="0.1.885" />
</ItemGroup>
</Project>
</Project>
7 changes: 7 additions & 0 deletions DynamicTreeDataGrid.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{5039E3DE-781
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicTreeDataGrid", "src\DynamicTreeDataGrid\DynamicTreeDataGrid.csproj", "{0B6C7DA3-DCB3-4E30-8123-0188CF7063DE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicTreeDataGrid.Tests", "tests\DynamicTreeDataGrid.Tests\DynamicTreeDataGrid.Tests.csproj", "{07C1AE5D-0131-423B-BA99-D59B0164AF28}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -24,9 +26,14 @@ Global
{0B6C7DA3-DCB3-4E30-8123-0188CF7063DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0B6C7DA3-DCB3-4E30-8123-0188CF7063DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0B6C7DA3-DCB3-4E30-8123-0188CF7063DE}.Release|Any CPU.Build.0 = Release|Any CPU
{07C1AE5D-0131-423B-BA99-D59B0164AF28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07C1AE5D-0131-423B-BA99-D59B0164AF28}.Debug|Any CPU.Build.0 = Debug|Any CPU
{07C1AE5D-0131-423B-BA99-D59B0164AF28}.Release|Any CPU.ActiveCfg = Release|Any CPU
{07C1AE5D-0131-423B-BA99-D59B0164AF28}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{850B9779-36A7-44BC-A408-6822D8E3B630} = {8C594709-323A-43E9-83A0-C7BFDE21D371}
{0B6C7DA3-DCB3-4E30-8123-0188CF7063DE} = {5039E3DE-7810-4CB5-AB28-95C383BBA73C}
{07C1AE5D-0131-423B-BA99-D59B0164AF28} = {94ADF695-2CC5-4029-B465-39BC37BB0679}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="TUnit" />
</ItemGroup>

</Project>
16 changes: 16 additions & 0 deletions tests/DynamicTreeDataGrid.Tests/MyTestClass.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace DynamicTreeDataGrid.Tests;

public class MyTestClass {
[Test]
public async Task MyTest()
{
var result = Add(1, 2);

await Assert.That(result).IsEqualTo(3);
}

private int Add(int x, int y)
{
return x + y;
}
}
Loading