Started adding unit tests into the Client. #127
Started adding unit tests into the Client. #127tidusjar wants to merge 7 commits intoquasar:masterfrom tidusjar:UnitTests
Conversation
|
Can we please add into the AppVeyor.yml ? Or this: This will then allow my branch to build :(
|
|
i am really ashamed to ask this but what is it used for ? |
|
DragonzMaster, this is for unit testing http://en.wikipedia.org/wiki/Unit_testing . I am working on getting the references and Nuget packages working right now so the Build passes. Checkout my branch and run the tests and you will see what they do. :) |
|
thanks for the unit test contribution. btw check out all open issues and please contribute more. thanks |
|
BitteryPaul, I want to contribute more so I will take a look after I get this build working. |
|
wonderful. thecbuild is successful. great work @tidusjar |
|
Thanks. It was a pain getting Nuget packages to resolve when we have none already! All the work is now done for Nuget! |
|
It is funny but I was just thinking about this. This is especially necessary for the keylogger and file transfering to ensure the data is being transferred correctly! :) |
|
@MaxXor This is very important for these data-critical tasks! This makes life easy. 💯 |
|
@yankejustin I plan adding more tests into the solution! It makes things 10000x easier regarding maintainability and reducing bugs |
|
Hey, |
|
@MaxXor Just wondering why you are not using NUnit? It's a lot more flexible than MSTest. Any why are we not using AutoFixture? The main benefit of AF is that we can quickly mock up populated classes with 1 line. |
|
At the moment I don't see a need for this, the Client supports some Helper methods which are useful. I also want to keep the dependencies as low as possible. |
|
@MaxXor Ok no problem. I'm just saying there are a lot of advantages. Should I be doing this in the Master or Dev branch? |
|
Master please. :) |
|
Can you also create a project for the Server? I'll start adding some to that too :) |
Hello,
I have started to add some unit tests into the Client. I will proceed with this and eventually start adding some to the Server!
This is using NUnit 3 and Autofixture.
I just thought it would be very useful to have some of these components wrapped around in Unit tests so we don't break anything.
(Note: if I have done the process incorrect apologies! It's my first contribution).