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
@@ -12,7 +12,7 @@ namespace ClawdDotNet.Core.Tests.Tasks;
|
||||
public sealed class TaskFrontmatterTests
|
||||
{
|
||||
[Fact]
|
||||
public void Ein_vollstaendiges_Frontmatter_wird_gelesen()
|
||||
public void A_complete_frontmatter_is_read()
|
||||
{
|
||||
var text = """
|
||||
---
|
||||
@@ -58,7 +58,7 @@ public sealed class TaskFrontmatterTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Serialisieren_und_wieder_Einlesen_ergibt_dieselbe_Definition()
|
||||
public void Serialising_and_reading_back_gives_the_same_definition()
|
||||
{
|
||||
var original = new TaskItem
|
||||
{
|
||||
@@ -96,7 +96,7 @@ public sealed class TaskFrontmatterTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Ein_Assignee_mit_At_ueberlebt_den_Rundlauf()
|
||||
public void An_assignee_with_at_survives_the_round_trip()
|
||||
{
|
||||
// In YAML a leading '@' is reserved — without quoting it would get lost.
|
||||
var task = new TaskItem { Id = "t-1", Title = "x", Assignee = "@new" };
|
||||
@@ -109,7 +109,7 @@ public sealed class TaskFrontmatterTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Ohne_when_ist_es_eine_einmalige_Aufgabe()
|
||||
public void Without_when_it_is_a_one_off_task()
|
||||
{
|
||||
var text = """
|
||||
---
|
||||
@@ -125,7 +125,7 @@ public sealed class TaskFrontmatterTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Fehlende_Felder_fallen_auf_sichere_Standards_zurueck()
|
||||
public void Missing_fields_fall_back_to_safe_defaults()
|
||||
{
|
||||
var text = """
|
||||
---
|
||||
@@ -145,7 +145,7 @@ public sealed class TaskFrontmatterTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Eine_unbekannte_Terminart_wird_verworfen_statt_geraten()
|
||||
public void An_unknown_schedule_kind_is_discarded_instead_of_guessed()
|
||||
{
|
||||
var text = """
|
||||
---
|
||||
@@ -163,14 +163,14 @@ public sealed class TaskFrontmatterTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Fehlt_der_Frontmatter_Block_meldet_der_Parser_das()
|
||||
public void If_the_frontmatter_block_is_missing_the_parser_reports_it()
|
||||
{
|
||||
TaskFrontmatter.TryParse("Nur Text, kein Frontmatter.", out _, out var error).ShouldBeFalse();
|
||||
error.ShouldNotBeNull();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Ein_nicht_geschlossener_Block_wird_gemeldet()
|
||||
public void An_unclosed_block_is_reported()
|
||||
{
|
||||
var text = "---\nid: t-1\ntitle: x\n";
|
||||
TaskFrontmatter.TryParse(text, out _, out var error).ShouldBeFalse();
|
||||
@@ -178,7 +178,7 @@ public sealed class TaskFrontmatterTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Windows_Zeilenenden_stoeren_nicht()
|
||||
public void Windows_line_endings_do_no_harm()
|
||||
{
|
||||
var text = "---\r\nid: t-1\r\ntitle: Mit CRLF\r\n---\r\nRumpf\r\n";
|
||||
TaskFrontmatter.TryParse(text, out var task, out var error).ShouldBeTrue(error);
|
||||
|
||||
Reference in New Issue
Block a user