Stufe 4c (#764): Bezeichner auf Englisch - Typen, Methoden, Felder, Parameter, Locals, Testnamen
Mit Roslyn umbenannt (Verweise folgen, Zeichenketten bleiben unberuehrt). Nicht umbenannt, weil gespeichert oder ueber die API gebunden (Stufe 4e): Properties, Record-Parameter, Enum-Member sowie die Parameter der Endpunkt-Handler (Routen-/Query-Bindung ueber den Namen). Die JSON-Felder anonymer Objekte bleiben ausdruecklich benannt (JsonFilter: pfad). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
837a634a22
commit
77062facc9
@@ -20,7 +20,7 @@ public sealed class PromptCacheTests
|
||||
[InlineData("on", "openai/gpt-4o", true)]
|
||||
[InlineData("off", "anthropic/claude-sonnet-4-5", false)]
|
||||
[InlineData("OFF", "anthropic/claude-sonnet-4-5", false)]
|
||||
public void Aktivierung_richtet_sich_nach_Einstellung_und_Modell(string setting, string model, bool expected)
|
||||
public void Activation_depends_on_setting_and_model(string setting, string model, bool expected)
|
||||
{
|
||||
PromptCache.IsEnabledFor(setting, model).ShouldBe(expected);
|
||||
}
|
||||
@@ -30,7 +30,7 @@ public sealed class PromptCacheTests
|
||||
// ═══════════════════════════════════════════════════════════
|
||||
|
||||
[Fact]
|
||||
public void Der_SystemPrompt_bekommt_einen_Breakpoint()
|
||||
public void The_SystemPrompt_gets_a_breakpoint()
|
||||
{
|
||||
var messages = Conversation.Start("System").User("Frage").Build();
|
||||
|
||||
@@ -41,7 +41,7 @@ public sealed class PromptCacheTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Die_letzte_Nachricht_mit_Inhalt_bekommt_einen_rollierenden_Breakpoint()
|
||||
public void The_last_message_with_content_gets_a_rolling_breakpoint()
|
||||
{
|
||||
var messages = Conversation.Start().User("A").Assistant("B").User("C").Build();
|
||||
|
||||
@@ -52,7 +52,7 @@ public sealed class PromptCacheTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Eine_AssistantNachricht_ohne_Inhalt_traegt_keinen_Breakpoint()
|
||||
public void An_assistant_message_without_content_carries_no_breakpoint()
|
||||
{
|
||||
// assistant with tool_calls has no text content and cannot carry a block.
|
||||
var messages = Conversation.Start().User("A").Build();
|
||||
@@ -67,7 +67,7 @@ public sealed class PromptCacheTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Es_werden_hoechstens_zwei_Breakpoints_gesetzt()
|
||||
public void At_most_two_breakpoints_are_set()
|
||||
{
|
||||
// Providers only allow a limited number — they must not accumulate.
|
||||
var messages = Conversation.Start().Repeat(10).Build();
|
||||
@@ -78,7 +78,7 @@ public sealed class PromptCacheTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Wiederholtes_Anwenden_sammelt_keine_Breakpoints_an()
|
||||
public void Repeated_application_does_not_accumulate_breakpoints()
|
||||
{
|
||||
var messages = Conversation.Start().Repeat(3).Build();
|
||||
|
||||
@@ -93,7 +93,7 @@ public sealed class PromptCacheTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Eine_leere_Liste_fuehrt_nicht_zu_einem_Fehler()
|
||||
public void An_empty_list_does_not_lead_to_an_error()
|
||||
{
|
||||
var messages = new List<ChatMessage>();
|
||||
|
||||
@@ -111,7 +111,7 @@ public sealed class PromptCacheTests
|
||||
/// That is exactly what this test protects against.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task Der_Praefix_bleibt_ueber_alle_Schritte_zeichengleich()
|
||||
public async Task The_prefix_stays_identical_across_all_steps()
|
||||
{
|
||||
var fixture = new EngineFixture().WithTool(FakeTool.Returning("ok"));
|
||||
var agent = fixture.AddAgent("agent-cache", "TestTool");
|
||||
@@ -142,7 +142,7 @@ public sealed class PromptCacheTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Ohne_Caching_enthaelt_der_Request_kein_cache_control()
|
||||
public async Task Without_caching_the_request_contains_no_cache_control()
|
||||
{
|
||||
var fixture = new EngineFixture().WithTool(FakeTool.Returning("ok"));
|
||||
var agent = fixture.AddAgent("agent-nocache", "TestTool");
|
||||
|
||||
Reference in New Issue
Block a user