Unit Test on multiple Portable Class Libraries

Hi everyone

Currently I have a cross platform application (Android and iOS) with multiple PCL's:
1) A PCL which contains all Views (UI)
2) A PCL for the BusinessLogic (BC)
3) A PCL for Data-access to SQLite and Azure (Data)

I would like to add Unit Tests but I'm not sure how to do that. Should I create a Unit Test-project for each PCL? But what about the platform specific code?
And can a SQLite and/or Azure database be tested using Unit Tests?

Thanks in advance!

Answers

  • shash12shash12 INMember ✭✭

    @StefaanAvonds.3725 ideally you have to create one PCL which contains business logic . Then you can create separate Unit Test project for PCL(which contains business logic).

  • StefaanAvonds.3725StefaanAvonds.3725 USMember ✭✭✭

    So only the second PCL needs to have a Unit Test?

    How about testing for DataAccess?

Sign In or Register to comment.