diff --git a/Directory.Packages.props b/Directory.Packages.props
index 3d89052f..c9da2489 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -12,12 +12,14 @@
+
+
-
+
@@ -70,8 +72,8 @@
-
+
\ No newline at end of file
diff --git a/src/PostIt.Tests/PostIt.Tests.csproj b/src/PostIt.Tests/PostIt.Tests.csproj
new file mode 100644
index 00000000..10d5e16e
--- /dev/null
+++ b/src/PostIt.Tests/PostIt.Tests.csproj
@@ -0,0 +1,24 @@
+
+
+ net10.0
+ enable
+ enable
+ false
+ PostIt.Tests
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/PostIt.Tests/TestApp.cs b/src/PostIt.Tests/TestApp.cs
new file mode 100644
index 00000000..0c52c649
--- /dev/null
+++ b/src/PostIt.Tests/TestApp.cs
@@ -0,0 +1,16 @@
+using Avalonia;
+using Avalonia.Headless;
+
+[assembly: AvaloniaTestApplication(typeof(PostIt.Tests.TestAppBuilder))]
+
+namespace PostIt.Tests;
+
+public class TestAppBuilder
+{
+ public static AppBuilder BuildAvaloniaApp() =>
+ AppBuilder.Configure()
+ .UseHeadless(new AvaloniaHeadlessPlatformOptions
+ {
+ UseHeadlessDrawing = true
+ });
+}
\ No newline at end of file
diff --git a/src/PostIt.Tests/UnitTest1.cs b/src/PostIt.Tests/UnitTest1.cs
new file mode 100644
index 00000000..96990865
--- /dev/null
+++ b/src/PostIt.Tests/UnitTest1.cs
@@ -0,0 +1,16 @@
+using Avalonia.Headless.XUnit;
+using Avalonia.Controls;
+using PostIt.Views;
+
+namespace PostIt.Tests;
+
+public class MainPageTests
+{
+ [AvaloniaFact]
+ public void MainPage_Should_Load()
+ {
+ var window = new MainWindow();
+ window.Show();
+ Assert.NotNull(window);
+ }
+}
\ No newline at end of file
diff --git a/src/PostIt/PostIt/App.axaml.cs b/src/PostIt/PostIt/App.axaml.cs
index 66592224..8e895196 100644
--- a/src/PostIt/PostIt/App.axaml.cs
+++ b/src/PostIt/PostIt/App.axaml.cs
@@ -1,12 +1,8 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
-using Avalonia.Data.Core;
-using Avalonia.Data.Core.Plugins;
-using System.Linq;
using Avalonia.Markup.Xaml;
using PostIt.ViewModels;
using PostIt.Views;
-using Avalonia.Controls;
namespace PostIt;
diff --git a/test/yavscTests/yavscTests.csproj b/test/yavscTests/yavscTests.csproj
index 623b3532..c0e12e10 100644
--- a/test/yavscTests/yavscTests.csproj
+++ b/test/yavscTests/yavscTests.csproj
@@ -21,7 +21,7 @@
-
+
@@ -47,9 +47,6 @@
-
+
\ No newline at end of file
diff --git a/yavsc.sln b/yavsc.sln
index cd6de416..19563b13 100644
--- a/yavsc.sln
+++ b/yavsc.sln
@@ -33,6 +33,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PostIt.Browser", "src\PostI
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PostIt.Desktop", "src\PostIt\PostIt.Desktop\PostIt.Desktop.csproj", "{EFE24256-9335-44C5-8B77-E180C2DB3C0B}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PostIt.Tests", "src\PostIt.Tests\PostIt.Tests.csproj", "{4D283324-6DD3-4CD1-9893-8C317772C6B5}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -187,6 +189,18 @@ Global
{EFE24256-9335-44C5-8B77-E180C2DB3C0B}.Release|x64.Build.0 = Release|Any CPU
{EFE24256-9335-44C5-8B77-E180C2DB3C0B}.Release|x86.ActiveCfg = Release|Any CPU
{EFE24256-9335-44C5-8B77-E180C2DB3C0B}.Release|x86.Build.0 = Release|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Debug|x64.Build.0 = Debug|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Debug|x86.Build.0 = Debug|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Release|x64.ActiveCfg = Release|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Release|x64.Build.0 = Release|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Release|x86.ActiveCfg = Release|Any CPU
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -205,5 +219,6 @@ Global
{4C092CF8-524A-494D-AAFC-69383DFBA31D} = {E13D107F-4053-D0DE-6394-453609595BFE}
{AF96C1C4-D128-4CD7-A8BB-D194E6D270F0} = {E13D107F-4053-D0DE-6394-453609595BFE}
{EFE24256-9335-44C5-8B77-E180C2DB3C0B} = {E13D107F-4053-D0DE-6394-453609595BFE}
+ {4D283324-6DD3-4CD1-9893-8C317772C6B5} = {CDB1BDB5-53F9-4B43-864F-60F2E74F44E2}
EndGlobalSection
EndGlobal