Last post Apr 30, 2019 04:58 PM by deepalgorithm
Apr 14, 2019 04:43 PM|nambir|LINK
I have a WCF application in VS2015. What is the library that is best for Unit Testing, Integration testing, Automated UI Testing.
Nunit vs Xunit?
Which one i can go for?
Apr 15, 2019 01:42 AM|Ackerly Xu|LINK
Hi nambir ,
If your test doesn't involve wcf runtime object , such as OprationContext.
You just use test framework as you use in normal test.
In this aspect , only if Nunit and Xunit could test normal object , there is no much difference between nunit and xunit.
But , if your service contains wcf runtime object , you might need to mock wcf object.
Please refer to the below linq for more discussion about testing in wcf.
Apr 30, 2019 04:58 PM|deepalgorithm|LINK
They are both good and either one will be OK. XUnit has a larger focus on extensibility and flexibility. It also uses a more modern and unique style of testing, by doing away with the standard [test] [testfixture] terminology and using tags like Facts and Theories.
I don't see the value in unit testing a WCF Service directly as you have to mock out all the dependencies. What you want to do is unit test any logic you wrote in your service implementation.
If you want to test the actual running service then use