T
T
trauus2014-03-24 19:46:46
Books
trauus, 2014-03-24 19:46:46

How to create such a test?

Good evening.
I am developing an application that will test a certain device. The set of tests is not finalized and tests may be added and removed in the future.
The test consists in sending sequences of special commands to the device, waiting for the result, analyzing it and displaying it on the form.
The question is how to architecturally make adding and removing tests require a minimum of edits to the supporting code?
That is, ideally, it should be like this: I write a class or method that contains the necessary actions for the test, and then the system itself finds all test implementations and runs them sequentially.
Is this possible in C#? If yes, how is it usually done? If there are opensource projects in mind where similar tasks were solved, I would be grateful for the links.
What literature can be read on the topic of designing an extensible architecture so that such questions do not arise and in order to know typical solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mars2003, 2014-03-24
@mars2003

Everything is possible
Through Reflection , you find the necessary classes in the assembly, create instances, and do everything you need. Classes must inherit one interface, the implementation should not be difficult

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question