feat(01-01): add xUnit test project with 7 stub test files

- SharepointToolbox.Tests targeting net10.0-windows with UseWPF=true
- Moq 4.20.72 added for future mocking
- 7 stub test files across Services, Auth, ViewModels, Localization, Integration
- All tests marked [Fact(Skip)] referencing implementation plan — 0 failed, 7 skipped
- Solution build: 0 errors, 0 warnings
This commit is contained in:
Dev
2026-04-02 12:02:30 +02:00
parent f469804810
commit eac34e3e2c
9 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
namespace SharepointToolbox.Tests.Auth;
public class MsalClientFactoryTests
{
[Fact(Skip = "Wave 0 stub — implemented in plan 01-04")]
public void CreateClient_Returns_ConfiguredPublicClientApplication() { }
}

View File

@@ -0,0 +1,7 @@
namespace SharepointToolbox.Tests.Auth;
public class SessionManagerTests
{
[Fact(Skip = "Wave 0 stub — implemented in plan 01-04")]
public void GetContext_Returns_ClientContext_For_ConnectedTenant() { }
}

View File

@@ -0,0 +1,7 @@
namespace SharepointToolbox.Tests.Integration;
public class LoggingIntegrationTests
{
[Fact(Skip = "Wave 0 stub — implemented in plan 01-05")]
public void Serilog_WritesTo_RollingFile_On_Startup() { }
}

View File

@@ -0,0 +1,7 @@
namespace SharepointToolbox.Tests.Localization;
public class TranslationSourceTests
{
[Fact(Skip = "Wave 0 stub — implemented in plan 01-05")]
public void ChangeLanguage_Updates_Bound_Strings() { }
}

View File

@@ -0,0 +1,7 @@
namespace SharepointToolbox.Tests.Services;
public class ProfileServiceTests
{
[Fact(Skip = "Wave 0 stub — implemented in plan 01-03")]
public void SaveAndLoad_RoundTrips_Profiles() { }
}

View File

@@ -0,0 +1,7 @@
namespace SharepointToolbox.Tests.Services;
public class SettingsServiceTests
{
[Fact(Skip = "Wave 0 stub — implemented in plan 01-03")]
public void SaveAndLoad_RoundTrips_Settings() { }
}

View File

@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<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="..\SharepointToolbox\SharepointToolbox.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,7 @@
namespace SharepointToolbox.Tests.ViewModels;
public class FeatureViewModelBaseTests
{
[Fact(Skip = "Wave 0 stub — implemented in plan 01-06")]
public void CancelCommand_Cancels_RunningOperation() { }
}

View File

@@ -1,3 +1,4 @@
<Solution>
<Project Path="SharepointToolbox.Tests/SharepointToolbox.Tests.csproj" />
<Project Path="SharepointToolbox/SharepointToolbox.csproj" />
</Solution>