IntelliTect / IntelliTect/TestTools.TestFramework
Consider: Moving gathering test block inputs/outputs to the Add methods
- 主要语言
- C#
- 星标
- 1
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently, TestBuilder.Build() goes through and finds all inputs (properties, constructor parameters, and Execute parameters,) and outputs (return types) and then cross-checks them all in order to make sure all test blocks have the required dependencies supplied by a prior test block.
It might make an appreciable difference in maintainability and readability in TestBuilder.Build() to instead handle that as part of AddTestBlock, AddAsyncTestBlock, AddFinallyBlock, and AddAsyncFinallyBlock.
Each TestBlock would need an Input and Output property. We don't really care (at that point) how the test block asks for the input; The DI service handles it for constructors, and there's already code to handle properties and execute args.
贡献指南
调研方向
Start in TestBuilder.Build() and inspect AddTestBlock, AddAsyncTestBlock, AddFinallyBlock, and AddAsyncFinallyBlock. Trace how inputs and outputs are currently gathered and cross-checked, then determine the required TestBlock properties and verify that dependency validation remains correct after moving the work into the Add methods.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- testing
- Issue 类型
- 重构
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100