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:
@@ -21,6 +21,7 @@ public class EwsSoapEnvelopeTests
|
||||
string body = "Body")
|
||||
=> XDocument.Parse(EwsSoapEnvelope.BuildCreateItem(from, bcc ?? ["one@example.com"], subject, body));
|
||||
|
||||
/// <summary>Verifies that the envelope sets the send-only disposition and the Exchange 2013 request version.</summary>
|
||||
[Fact]
|
||||
public void BuildCreateItem_SetsSendOnlyDispositionAndExchange2013RequestVersion()
|
||||
{
|
||||
@@ -34,6 +35,7 @@ public class EwsSoapEnvelopeTests
|
||||
Assert.Single(doc.Descendants(Soap + "Header").Single().Elements());
|
||||
}
|
||||
|
||||
/// <summary>Verifies that markup in the subject and body is escaped.</summary>
|
||||
[Fact]
|
||||
public void BuildCreateItem_EscapesMarkupInSubjectAndBody()
|
||||
{
|
||||
@@ -48,6 +50,7 @@ public class EwsSoapEnvelopeTests
|
||||
Assert.Equal("Text", (string?)doc.Descendants(Types + "Body").Single().Attribute("BodyType"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that every recipient is placed in the BCC list and no To recipients are emitted.</summary>
|
||||
[Fact]
|
||||
public void BuildCreateItem_PutsEveryRecipientInBccAndNeverEmitsToRecipients()
|
||||
{
|
||||
@@ -65,6 +68,7 @@ public class EwsSoapEnvelopeTests
|
||||
Assert.DoesNotContain(doc.Descendants(), e => e.Name.LocalName is "ToRecipients" or "CcRecipients");
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the envelope emits the From mailbox.</summary>
|
||||
[Fact]
|
||||
public void BuildCreateItem_EmitsFromMailbox()
|
||||
{
|
||||
@@ -75,6 +79,7 @@ public class EwsSoapEnvelopeTests
|
||||
Assert.Equal("scada-alerts@example.com", mailbox.Element(Types + "EmailAddress")!.Value);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the message child elements follow the EWS schema sequence.</summary>
|
||||
[Fact]
|
||||
public void BuildCreateItem_OrdersMessageChildrenPerEwsSchemaSequence()
|
||||
{
|
||||
@@ -87,6 +92,7 @@ public class EwsSoapEnvelopeTests
|
||||
message.Elements().Select(e => e.Name.LocalName).ToArray());
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the envelope starts with a UTF-8 XML declaration.</summary>
|
||||
[Fact]
|
||||
public void BuildCreateItem_StartsWithUtf8XmlDeclaration()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user