開發 Web 或多或少會使用到 HttpContext.Current,為了專注測主要邏輯,會隔離 HttpContext.Current,不要因為它而導致測試無法運行,我在這裡列出了一些隔離技巧
2016-02-22
2015-02-17
[C#.NET] 單元測試 - 如何使用 NSubstitute 測試 void 方法的 out / ref
- 8180
- 0
- NSubstitute
- 2023-02-26
[C#.NET] 單元測試 - 如何使用 NSubstitute 測試 void 方法的 out / ref
2015-02-17
[C#.NET] 單元測試 - 如何使用 NSubstitute 模擬被測物件與其它物件互動
- 10008
- 0
- NSubstitute
- 2023-02-26
[C#.NET] 單元測試 - 如何使用 NSubstitute 模擬被測物件與其它物件互動
2015-02-17
[C#.NET] 單元測試 - 如何使用 NSubstitute.Arg 參數條件及回傳結果驗証
- 7305
- 0
- NSubstitute
- 2022-03-11
[C#.NET] 單元測試 - 如何使用 NSubstitute.Arg 參數條件及回傳結果驗証
2015-02-16
[C#.NET][Entity Framework] 單元測試 - 使用 NSubstitute 測試 EF6
- 4805
- 0
- NSubstitute
- 2023-02-26
[C#.NET][Entity Framework] 單元測試 - 使用 NSubstitute 測試 EF6
2015-02-16
[C#.NET] 單元測試 Mock Framework - NSubstitute
- 6478
- 0
- NSubstitute
- 2023-02-26
[C#.NET] 單元測試 Mock Framework - NSubstitute
- 1