Skip to content

Add GlobalUsings.cs to test project to prevent missing-using build failures #73

Description

@michaeljolley

Summary

Add a GlobalUsings.cs file to WeatherExtension.Tests with commonly-needed namespaces to eliminate repeated using boilerplate and prevent the class of CS0246 build failures we hit on PR #63.

Motivation

Every test file redeclares using System;, using System.Net;, using System.Net.Http;, using System.Threading;, using System.Threading.Tasks;. The CI failures on PR #63 were caused by missing usings that a global file would have caught. A single GlobalUsings.cs eliminates ~5 lines of boilerplate per test file and prevents this class of error.

Scope

  • Create WeatherExtension.Tests/GlobalUsings.cs with 6-8 common namespaces
  • Remove redundant using lines from existing test files (optional, non-breaking)

Team vote

Recommended by Murdock (testing) during stand-up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestsquadSquad triage inbox — Lead will assign to a member

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions