~/talk

Raising the Value of Your Unit Tests

Talkat TechBash 2018 · 2018-10-02..10-05· [testing]
links:none on file
slides:none on file

Argues that output verification tests (inputs → expected outputs) catch the most regressions, while collaboration verification is brittle; covers state verification too. Shows concrete code: a ToDo app where a constructor assigns a GUID (tests check ID type/length), a ViewModel wired to an IToDoItemDataStore tested with a hand-rolled mock (mentions Moq), using MSTest and Visual Studio, recommending DI, avoid statics, SOLID, max one mock per test, and a three-part naming convention (unit_initial_expected). Live code demo and repo (develop branch) accompany the talk.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:10Why write unit tests
  3. 7:11Unit testing styles explained
  4. 10:23What makes a test valuable
  5. 15:30Making tests clear and simple
  6. 21:29Writing testable code
  7. 26:24High-value test scenarios
  8. 31:24Test by scenarios not methods
  9. 32:52Live code demonstration
  10. 50:48Resources and summary
  11. 52:57Q&A on unit testing challenges
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.