Automated Unit testing - why? what? which?

前端 未结 6 1142
旧巷少年郎
旧巷少年郎 2020-12-23 16:30

I am a C# winforms developer with an experience of around a year. The only unit testing that I have been doing till now has been manual. I have thinking about following for

6条回答
  •  攒了一身酷
    2020-12-23 17:19

    • Why do we need to have automated unit testing? How effective is it?

    Very.

    • If I want to start doing automated unit testing. Where should I start from? (have heard about nunit) Start with nunit - its very easy

    • Do I need to keep anything in mind when designing my classes to facilitate automated unit testing? If you get good at unit test then you'll want to.

    • Does C# have an in-built support for automated unit testing? No - but Visual studio does - but I don't recommend using it

    • Can we also test GUI with automated unit testing or is it just business logic? Anything can be automated, its just question of how hard it is to do.

    • Have heard about mocking frameworks. Are they also for unit testing? Yes.

    Read Roy Osherove's The art of unit testing.

提交回复
热议问题