Skip to content

Lab8 - #9

Merged
slavik22 merged 6 commits into
masterfrom
lab8
May 24, 2026
Merged

slavik22 merged 6 commits into
masterfrom
lab8

Conversation

@slavik22

Copy link
Copy Markdown
Owner

No description provided.

slavik22 added 6 commits May 24, 2026 13:57
…pression, replace O(n) Count() loop in GetSamples with index-based iteration
- Wrap independent asserts in Assert.Multiple across test files
- Replace Has.Count / .Count() on IEnumerable with Has.Exactly(n).Items
- Switch ReadAsync/WriteAsync to Memory-based overloads (S4583)
- Make _cts readonly in TcpClientWrapper; fix null-forgiving operator
- Split GetSamples into guard + private iterator (S3972)
- Fix IDisposable pattern in UdpTimedSender with Dispose(bool)
- Make _udpClient_MessageReceived static (S2325)
- Remove TODO comment; fix empty while block in Program.cs
- Add ErrorStream helper replacing Mock<Stream> for exception tests
…s; add coverlet.msbuild to EchoTcpServerTests

- Replace same-argument GetHashCode assertion with captured variable (NUnit2009)
- Use Is.EqualTo/Is.Not.EqualTo on objects directly instead of .Equals()+Is.True/False
- Replace Is.Not.EqualTo("string") with new object() to avoid NUnit2021 (incompatible types)
- Add coverlet.msbuild to EchoTcpServerTests.csproj so /p:CollectCoverage=true produces
  an OpenCover report; without it EchoTcpServer coverage was silently absent from SonarCloud
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
75.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@slavik22
slavik22 merged commit 229503e into master May 24, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant