Skip to content

Add WeatherFormatter unit tests (compass, temperature, hour formatting) #117

@michaeljolley

Description

@michaeljolley

Summary

WeatherFormatter is now the single formatting funnel for all UI surfaces (merged via PR #104). Its CompassDirection modular arithmetic and Hour 12/24h branching currently have zero test coverage.

Proposal

Add WeatherFormatterTests.cs with [DataTestMethod] rows covering:

  • Compass boundary cases (0°, 337.5°→360°, each 45° sector)
  • Temperature formatting for each unit string
  • 12h/24h hour display branching

Benefit

Catches regressions when formatter is touched — critical since all UI surfaces flow through it.

Origin

Squad ideation — May 22, 2026 stand-up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions