If I am going to test code, it will be my code. I use basically the same code for the ethernet shield and the wifi shield.
Client: Arduino Playground - WebClient
Server: Arduino Playground - WebServerST
The only major change is the setup function to start whichever device I plan on using and the WiFiServer and .WiFiClient instead of the ethernet instances.