IChatCompletionClient aus OpenRouterClient extrahiert, damit AgentEngine und ContextCompactor ohne echte API-Aufrufe testbar sind. Neues Testprojekt tests/ClawdDotNet.Core.Tests (xUnit, Shouldly, NSubstitute, FsCheck) mit: - FakeChatClient (programmierbare Antwortfolgen, Deep-Copy der Requests) - ContextInvariants (prueft die API-Regeln fuer tool_call-Paarung) - Conversation-Builder fuer gueltige Testkonversationen - 26 Tests: Compaction, LoopGuard, 2 Property-Tests 10 Tests sind bewusst rot — sie reproduzieren die Bugs B1, B3 und B14 aus der Bestandsaufnahme und werden mit den Fixes gruen. Ausserdem: fehlende Tool-Projekte in slnx ergaenzt, Test-Pakete im packageSourceMapping der NuGet.Config eingetragen. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
43 lines
1.5 KiB
XML
43 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<packageSources>
|
|
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
|
</packageSources>
|
|
<packageSourceMapping>
|
|
<packageSource key="nuget.org">
|
|
<package pattern="Microsoft.*" />
|
|
<package pattern="System.*" />
|
|
<package pattern="MySqlConnector" />
|
|
<package pattern="MongoDB.*" />
|
|
<package pattern="MailKit" />
|
|
<package pattern="MimeKit" />
|
|
<package pattern="Portable.BouncyCastle" />
|
|
<package pattern="BouncyCastle.*" />
|
|
<package pattern="Newtonsoft.Json" />
|
|
<package pattern="DnsClient" />
|
|
<package pattern="AWSSDK.*" />
|
|
<package pattern="SharpCompress" />
|
|
<package pattern="Snappier" />
|
|
<package pattern="ZstdSharp.*" />
|
|
<package pattern="Telegram.Bot.*" />
|
|
<package pattern="Telegram.Bot" />
|
|
<package pattern="Npgsql.*" />
|
|
<package pattern="Npgsql" />
|
|
<package pattern="FluentFTP" />
|
|
<package pattern="SQLitePCLRaw.*" />
|
|
<package pattern="WTelegramClient" />
|
|
<!-- Test-Pakete -->
|
|
<package pattern="xunit" />
|
|
<package pattern="xunit.*" />
|
|
<package pattern="Shouldly" />
|
|
<package pattern="NSubstitute" />
|
|
<package pattern="Castle.Core" />
|
|
<package pattern="FsCheck" />
|
|
<package pattern="FsCheck.*" />
|
|
<package pattern="FSharp.Core" />
|
|
<package pattern="DiffEngine" />
|
|
<package pattern="EmptyFiles" />
|
|
</packageSource>
|
|
</packageSourceMapping>
|
|
</configuration>
|