Skip to content

test: delete vacuous Udp/Serial constructor facts - #809

Draft
tylerkron wants to merge 1 commit into
mainfrom
cursor/delete-vacuous-udp-serial-ctors-48d0
Draft

tylerkron wants to merge 1 commit into
mainfrom
cursor/delete-vacuous-udp-serial-ctors-48d0

Conversation

@tylerkron

Copy link
Copy Markdown
Contributor

Both facts pass distinguishing constructor args then only assert the closed/disconnected flag a sibling already covers.

  • UdpTransportTests.Constructor_WithPort_ShouldCreateInstance passes 30303 and only asserts IsOpen is false, which Constructor_ShouldCreateInstance already covers. It never reads LocalPort.
  • SerialStreamTransport_Constructor_WithCustomSettings_ShouldInitializeCorrectly passes Parity.Even, 7 data bits, and StopBits.Two, then only asserts disconnected plus "COM2". Disconnected ConnectionInfo does not include baud/parity/data/stop bits. SerialStreamTransport_Constructor_ShouldInitializeCorrectly already pins the port name.

No production code changes.

Open in Web Open in Cursor 

Both facts pass distinguishing constructor args then only assert the
closed/disconnected flag a sibling already covers.

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