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.
Summary
Add a
GlobalUsings.csfile toWeatherExtension.Testswith commonly-needed namespaces to eliminate repeatedusingboilerplate 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 singleGlobalUsings.cseliminates ~5 lines of boilerplate per test file and prevents this class of error.Scope
WeatherExtension.Tests/GlobalUsings.cswith 6-8 common namespacesusinglines from existing test files (optional, non-breaking)Team vote
Recommended by Murdock (testing) during stand-up.