Skip to content

Conversation

@dodexahedron
Copy link
Contributor

This has several more test fixtures converted and slightly improved.

Ready for merge whenever

Just set the object.
Potentially fewer allocations, as well
Bump nuget packages. Tests confirmed still passing.
Should probably be split up into multiple tests or at least have tests added for the individual actions it takes to prove them in isolation.
Assert end is identical to start
Also use the OperationManager so the state of the stacks can be tested
Each part is a local function so it's all easier to visually parse now
…nit-tests-to-constraint-model-4

* 19-convert-postests-to-constraint-model:
  Add Heya to the dictionary so it stops getting reported as an error
  Turn that into a switch
  Wrap these in assertions that they don't throw
  Use nameof on this
  usings for disposables
  Might as well let this test all combinations of the old inputs
  Remove two redundant tests
  Add nullability adornment
  Remove unneeded usings
  Use collection expressions for these
…nvert-unit-tests-to-constraint-model-4

* 36-convert-radiogrouptests-to-constraint-model:
  Convert these
  Statics and collection expressions
  Annotate the fixture
…nvert-unit-tests-to-constraint-model-4

* 37-convert-scrollviewtests-to-constraint-model:
  Minor cleanup and modernizing
  Convert the assertions
  fixture annotations
  Ain't nobody got time for that
…onvert-unit-tests-to-constraint-model-4

* 38-convert-spinnerviewtests-to-constraint-model:
  Clean up after ourselves
  Use the standard style for this
  Make these assumptions
  Dispose it before the last assertion
  Convert to constraints
  Annotations
  Clean usings and switch to file-scoped namespace
@dodexahedron
Copy link
Contributor Author

As with the last one, I'm branching from here for work from this point, so this PR will remain as-is.

New branch will be convert-unit-tests-to-constraint-model-5, and I'll open a PR for that when I have a few test fixtures done in it.

@dodexahedron
Copy link
Contributor Author

This is obsoleted by #283, but feel free to handle them however you please.

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