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:
7
SharepointToolbox.Tests/Auth/MsalClientFactoryTests.cs
Normal file
7
SharepointToolbox.Tests/Auth/MsalClientFactoryTests.cs
Normal 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() { }
|
||||
}
|
||||
7
SharepointToolbox.Tests/Auth/SessionManagerTests.cs
Normal file
7
SharepointToolbox.Tests/Auth/SessionManagerTests.cs
Normal 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() { }
|
||||
}
|
||||
@@ -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() { }
|
||||
}
|
||||
@@ -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() { }
|
||||
}
|
||||
7
SharepointToolbox.Tests/Services/ProfileServiceTests.cs
Normal file
7
SharepointToolbox.Tests/Services/ProfileServiceTests.cs
Normal 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() { }
|
||||
}
|
||||
7
SharepointToolbox.Tests/Services/SettingsServiceTests.cs
Normal file
7
SharepointToolbox.Tests/Services/SettingsServiceTests.cs
Normal 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() { }
|
||||
}
|
||||
27
SharepointToolbox.Tests/SharepointToolbox.Tests.csproj
Normal file
27
SharepointToolbox.Tests/SharepointToolbox.Tests.csproj
Normal 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>
|
||||
@@ -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() { }
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
<Solution>
|
||||
<Project Path="SharepointToolbox.Tests/SharepointToolbox.Tests.csproj" />
|
||||
<Project Path="SharepointToolbox/SharepointToolbox.csproj" />
|
||||
</Solution>
|
||||
|
||||
Reference in New Issue
Block a user