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
@@ -24,7 +24,7 @@ public sealed class YouTubeUrlTests
|
||||
[InlineData("--config-location /tmp/evil.conf")]
|
||||
[InlineData("--paths /windows/system32")]
|
||||
[InlineData("-")]
|
||||
public void Optionsartige_Eingaben_werden_abgelehnt(string input)
|
||||
public void Option_like_inputs_are_rejected(string input)
|
||||
{
|
||||
YouTubeUrl.TryResolveChannelUrl(input, out _, out var error).ShouldBeFalse();
|
||||
error.ShouldNotBeNull();
|
||||
@@ -37,7 +37,7 @@ public sealed class YouTubeUrlTests
|
||||
[InlineData("http://192.168.178.10:8418/Richard/ClawdDotNet.git")]
|
||||
[InlineData("file:///C:/Windows/win.ini")]
|
||||
[InlineData("ftp://example.com/datei")]
|
||||
public void Fremde_Hosts_und_Schemata_werden_abgelehnt(string url)
|
||||
public void Foreign_hosts_and_schemes_are_rejected(string url)
|
||||
{
|
||||
YouTubeUrl.TryResolveChannelUrl(url, out _, out var error).ShouldBeFalse();
|
||||
error.ShouldNotBeNull();
|
||||
@@ -51,7 +51,7 @@ public sealed class YouTubeUrlTests
|
||||
[InlineData("kanal&name")]
|
||||
[InlineData("../../etc/passwd")]
|
||||
[InlineData("@kanal/../../evil")]
|
||||
public void Unsaubere_Handles_werden_abgelehnt(string input)
|
||||
public void Unclean_handles_are_rejected(string input)
|
||||
{
|
||||
YouTubeUrl.TryResolveChannelUrl(input, out _, out var error).ShouldBeFalse();
|
||||
error.ShouldNotBeNull();
|
||||
@@ -61,7 +61,7 @@ public sealed class YouTubeUrlTests
|
||||
[InlineData(null)]
|
||||
[InlineData("")]
|
||||
[InlineData(" ")]
|
||||
public void Leere_Eingaben_werden_abgelehnt(string? input)
|
||||
public void Empty_inputs_are_rejected(string? input)
|
||||
{
|
||||
YouTubeUrl.TryResolveChannelUrl(input, out _, out _).ShouldBeFalse();
|
||||
}
|
||||
@@ -74,7 +74,7 @@ public sealed class YouTubeUrlTests
|
||||
[InlineData("@Computerphile", "https://www.youtube.com/@Computerphile/videos")]
|
||||
[InlineData("Computerphile", "https://www.youtube.com/@Computerphile/videos")]
|
||||
[InlineData("kanal_mit-punkt.name", "https://www.youtube.com/@kanal_mit-punkt.name/videos")]
|
||||
public void Handles_werden_zu_Kanal_URLs(string input, string expected)
|
||||
public void Handles_become_channel_URLs(string input, string expected)
|
||||
{
|
||||
YouTubeUrl.TryResolveChannelUrl(input, out var url, out var error).ShouldBeTrue(error);
|
||||
url.ShouldBe(expected);
|
||||
@@ -86,7 +86,7 @@ public sealed class YouTubeUrlTests
|
||||
[InlineData("https://m.youtube.com/watch?v=abc")]
|
||||
[InlineData("https://music.youtube.com/watch?v=abc")]
|
||||
[InlineData("https://youtu.be/dQw4w9WgXcQ")]
|
||||
public void Echte_YouTube_URLs_werden_durchgelassen(string url)
|
||||
public void Real_YouTube_URLs_are_let_through(string url)
|
||||
{
|
||||
YouTubeUrl.TryResolveChannelUrl(url, out var resolved, out var error).ShouldBeTrue(error);
|
||||
resolved.ShouldBe(url);
|
||||
@@ -97,7 +97,7 @@ public sealed class YouTubeUrlTests
|
||||
// ═══════════════════════════════════════════════════════════
|
||||
|
||||
[Fact]
|
||||
public void Die_URL_steht_hinter_dem_Optionsende_Trenner()
|
||||
public void The_URL_comes_after_the_end_of_options_separator()
|
||||
{
|
||||
// "--" ends the option list. Even if a value looked like an option,
|
||||
// yt-dlp would treat it as an address after that.
|
||||
@@ -110,7 +110,7 @@ public sealed class YouTubeUrlTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Jedes_Argument_ist_ein_eigener_Eintrag()
|
||||
public void Every_argument_is_its_own_entry()
|
||||
{
|
||||
// Crucial: no entry may contain several arguments — otherwise they could
|
||||
// be split apart again at startup.
|
||||
@@ -128,7 +128,7 @@ public sealed class YouTubeUrlTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Ohne_ffmpeg_entfaellt_die_Konvertierung()
|
||||
public void Without_ffmpeg_the_conversion_is_skipped()
|
||||
{
|
||||
var args = YouTubeUrl.BuildAudioDownloadArgs(
|
||||
"/tmp/x.%(ext)s", "https://youtu.be/abc", null, convertToMp3: false);
|
||||
|
||||
Reference in New Issue
Block a user