Skip to content

test: delete redundant unit-test facts - #812

Draft
tylerkron wants to merge 1 commit into
mainfrom
cursor/delete-redundant-test-facts-a892
Draft

tylerkron wants to merge 1 commit into
mainfrom
cursor/delete-redundant-test-facts-a892

Conversation

@tylerkron

@tylerkron tylerkron commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Deletes fourteen unit-test facts in src/Daqifi.Core.Tests whose assertions are already made by a broader sibling in the same file. No production code, MCP, Core library sources, or StreamMessageConsumerIntegrationTests changes.

Removed Still covered by
CreateRequestVersionMessage_StartsWithSoh, CreateRequestVersionMessage_EndsWithEot, CreateEraseFlashMessage_StartsWithSohEndsWithEot, CreateProgramFlashMessage_StartsWithSohEndsWithEot, CreateJumpToApplicationMessage_StartsWithSohEndsWithEot, CreateReadCrcMessage_StartsWithSohEndsWithEot AllMessages_HaveValidFraming (SOH/EOT on all five messages). Opcode, DLE, and CRC facts stay.
ParseHexRecords_ValidChecksum_DoesNotThrow ParseHexRecords_HexParsingConversion_CorrectBytes parses the same :020000041D00DD record and checks every byte. ParseHexRecords_InvalidChecksum_ThrowsInvalidDataException stays.
PopulateChannelsFromStatus_WithZeroResolution_UsesDefaultResolution, PopulateChannelsFromStatus_WithZeroResolution_SetsResolutionIsAssumed PopulateChannelsFromStatus_WithUnusableResolution_FallsBackWithoutThrowing with 0u asserts resolution 65535 and ResolutionIsAssumed on both the create and reuse paths.
Activate_NullPortName_ThrowsArgumentNullException, Deactivate_NullPortName_ThrowsArgumentNullException NullPortName_BothDirections_BlameThePortNameParameter throws ArgumentNullException naming portName for both directions. ActivateAsync_NullPortName_ThrowsArgumentNullException and DeactivateAsync_NullPortName_ThrowsArgumentNullException stay.
DecodeVersionResponse_WithNullData_ThrowsArgumentNullExceptionNamingData, DecodeProgramFlashResponse_WithNullData_ThrowsArgumentNullExceptionNamingData, DecodeEraseFlashResponse_WithNullData_ThrowsArgumentNullExceptionNamingData AllFourDecoders_WithNullData_ThrowTheSameArgumentNullException compares those three to the exception from DecodeReadCrcResponse_WithNullData_ThrowsArgumentNullExceptionNamingData (type, data parameter, message).
ShouldSkip_SeveralPlatformsNamed_SkipsOnEachOfThem ShouldSkip_TwoOfThreeNamed_RunsOnTheThird skips on each named platform in a combined flag and runs on the one that is not named.

Does not overlap #770, #771, #781, #790, or #805–#811.

Test plan

  • dotnet test the six affected classes on net9.0 and net10.0: 166 passed, 0 failed on each TFM
Open in Web Open in Cursor 

Drop fourteen facts whose assertions are already made by a broader
sibling in the same file. Production code is unchanged.

Co-authored-by: Tyler Kron <tylerkron@gmail.com>
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.

2 participants