Add comprehensive test coverage for CardPack, PackSlot, DefaultPackSlots, and PackParser classes. Tests verify TypeID generation, slot weight configurations, file parsing with various formats, and default pack creation. Test coverage: - CardPack: GenerateTypeID consistency and uniqueness - PackSlot: Default values, rarity/card weight population - DefaultPackSlots: Slot weight distributions, GetDefaultSlots - PackParser: File parsing, multiple packs/slots, card-specific weights Total: 60 tests (29 existing + 31 new) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
1.5 KiB
XML
36 lines
1.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<IsPackable>false</IsPackable>
|
|
<IsTestProject>true</IsTestProject>
|
|
<RootNamespace>TradingCardMod.Tests</RootNamespace>
|
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
|
|
<PackageReference Include="xunit" Version="2.6.1" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="coverlet.collector" Version="6.0.0">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Test files -->
|
|
<Compile Include="tests/**/*.cs" />
|
|
<!-- Reference the main project's testable code -->
|
|
<Compile Include="src/CardParser.cs" Link="CardParser.cs" />
|
|
<Compile Include="src/TradingCard.cs" Link="TradingCard.cs" />
|
|
<Compile Include="src/CardPack.cs" Link="CardPack.cs" />
|
|
<Compile Include="src/PackParser.cs" Link="PackParser.cs" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|