Fully Covering .NET C# Console Application With Unit Testsby@ahmedtarekhasan
2,123 reads
2,123 reads

Fully Covering .NET C# Console Application With Unit Tests

by Ahmed Tarek Hasan26mJanuary 6th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

Some colleagues are complaining that sometimes they are not able to apply TDD or write unit tests for some modules or applications. Console Applications is one of these. How could I test a Console application when the input is passed by key strokes and the output is presented on a screen?!! You don’t need to test the “Console” application, you want to test the business logic behind it.
featured image - Fully Covering .NET C# Console Application With Unit Tests
Ahmed Tarek Hasan HackerNoon profile picture
Ahmed Tarek Hasan

Ahmed Tarek Hasan

@ahmedtarekhasan

.NET (DotNet) Software Engineer & Blogger | https://www.developmentsimplyput.com

Share Your Thoughts

About Author

Ahmed Tarek Hasan HackerNoon profile picture
Ahmed Tarek Hasan@ahmedtarekhasan
.NET (DotNet) Software Engineer & Blogger | https://www.developmentsimplyput.com

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!