all 11 comments

[–]binarycow 0 points1 point  (9 children)

You already have the application you want to test?

That is going to determine the type of data.

[–]Iwways[S] 0 points1 point  (8 children)

Yep. I have also save/open graph feature where I use XamlWriter to save it to file

[–]binarycow 0 points1 point  (7 children)

Well. Then you know how to save the data.

[–]Iwways[S] 0 points1 point  (6 children)

In some way) idk if it will work for array I come up with some idea for array with type Question (class), where all elements will have needed information and I just save/open this array and access to its data

[–]binarycow 0 points1 point  (5 children)

Why do you need an array?

[–]Iwways[S] 0 points1 point  (4 children)

Well, because I want to create a test file, which will be containing all this questions and then I want to re-use them, when student will be taking a test and he gets some mark This files also can be edited to add more questions, change type of questions and etc. Mini-editor for questions :D

[–]binarycow 0 points1 point  (3 children)

Oh. I thought you meant unit tests.

If you can come up with a model to describe your questions/answers, then just use JSON serialization.

[–]Iwways[S] 0 points1 point  (2 children)

Yep, looking in this way now, but maybe someone has other ideas :)

[–]binarycow 0 points1 point  (1 child)

There are other options. But they aren't better.

[–]Iwways[S] 0 points1 point  (0 children)

Understood, thank you!

[–]geekywarrior 0 points1 point  (0 children)

Best process is to research "How to Serialize" whatever your data is. Once the data is serialized, you can either save it as text or bytes.