Tag: unit-testing

65 votes
15 answers
2.3K views
How to unit test with ILogger in ASP.NET Core

This is my controller: public class BlogController : Controller { private IDAO<Blog> _blogDAO;

avatar
Shantay
0 1 0 9
asked 07 September, 2021
60 votes
9 answers
1.5K views
.NET Core Unit Testing - Mock IOptions<T>

I feel like I'm missing something really obvious here. I have classes that require injecting of options u

avatar
Boyd
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
1.1K views
How do I test a private function or a class that has private methods, fields or inner classes?

How do I unit test (using xUnit) a class that has internal private methods, fields or nested classes? Or a fun

avatar
Georgie
0 1 0 9
asked 07 September, 2021
59 votes
2 answers
1.9K views
How do I use PHPUnit with CodeIgniter?

I have read and read articles on PHPUnit, SimpleTest, and other Unit Testing frameworks. They all sound so gre

avatar
Venice
0 1 0 9
asked 07 September, 2021