1

I am new in Nunit framework. So Please some one tell how to take input string through keyboard using NUNIT with c#.

2
  • 2
    NUnit is a unit testing framework for automated testing. If you're doing keyboard input, you're not unit testing. I think you're trying to use NUnit for the wrong thing :) Commented Jan 13, 2012 at 5:39
  • Maybe you want to populate some textboxes on your forms? Commented Jan 13, 2012 at 5:46

1 Answer 1

5

You don't. Unit tests are intended to be run automatically, without user input. If you need user input for your tests, then you need to rethink how you are designing your tests and re-work them to only work with pre-stored data, like hardcoded strings or resource files.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.