docs(tests): fix CommentChecker findings across tests/ — 13,392 → 0 (repo-wide scan clean)
Comment/XML-doc changes only: - add summaries to ~10k test methods, fixtures, fakes and helpers (+ <param> on theories, <returns> on async Task methods, <inheritdoc/> on interface implementations the checker can resolve) - strip ~2.6k project-tracking references (WP*, P*-*, row-NN, Task N, #NN, Component-0NN) from comments, keeping the explanatory text; reword false positives in comments only - real docs on fakes implementing BCL/library interfaces (IDisposable, ILogger, IOptionsMonitor, IAsyncLifetime) - reword the last 5 src/ false positives (CWE-1236, failures-1, year-0001, M365) Only non-comment edits: four one-line nested classes split across lines so members can carry docs. Build 0 errors / 0 warnings.
This commit is contained in:
@@ -52,6 +52,7 @@ public class SmsConfigurationPageTests : BunitContext
|
||||
return repo;
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the read-only view shows the config row but never renders the auth token value.</summary>
|
||||
[Fact]
|
||||
public void ReadOnlyView_ShowsConfigRow_ButNeverRendersAuthTokenValue()
|
||||
{
|
||||
@@ -74,6 +75,7 @@ public class SmsConfigurationPageTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the edit form does not prefill the auth token but does prefill the messaging service SID.</summary>
|
||||
[Fact]
|
||||
public void EditForm_DoesNotPrefillAuthToken_ButPrefillsMessagingServiceSid()
|
||||
{
|
||||
@@ -96,6 +98,7 @@ public class SmsConfigurationPageTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that saving a new configuration calls Add and SaveChanges.</summary>
|
||||
[Fact]
|
||||
public void SavingNewConfig_CallsAddAndSaveChanges()
|
||||
{
|
||||
@@ -127,10 +130,11 @@ public class SmsConfigurationPageTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a new configuration with only a messaging service SID and no from number saves successfully.</summary>
|
||||
[Fact]
|
||||
public void SavingNewConfig_MessagingServiceSidOnly_NoFromNumber_Saves()
|
||||
{
|
||||
// UI-Med-2: a Twilio Messaging-Service-only config is valid with no From number.
|
||||
// A Twilio Messaging-Service-only config is valid with no From number.
|
||||
// The either-or validation must accept it and persist a null FromNumber.
|
||||
var repo = RepoWith();
|
||||
Services.AddSingleton(repo);
|
||||
@@ -160,6 +164,7 @@ public class SmsConfigurationPageTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that saving an edit with a blank auth token preserves the existing token.</summary>
|
||||
[Fact]
|
||||
public void SavingEdit_WithBlankAuthToken_PreservesExistingToken()
|
||||
{
|
||||
@@ -185,6 +190,7 @@ public class SmsConfigurationPageTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that saving an edit with a new auth token overwrites the token.</summary>
|
||||
[Fact]
|
||||
public void SavingEdit_WithNewAuthToken_OverwritesToken()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user