If you can't get the configuration file to work, you can also build your WCF configuration / proxy by hand programatically. It's actually very simple, and it makes it so your client doesn't have to have any configuration file at all.
There are several examples / tutorials on the nets, this one looks quick and dirty: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/82457a59-44f9-4efb-a814-0ed5a1ec0074 In order to do this you'll need to have your client and server reference the same service/data contracts. I recommend creating a seperate asssembly to hold the contracts. You'll also need to change the different bindings, endpoint, etc to match where your server lives and how it communicates. Dan Lash On Aug 5, 4:26 pm, "Jeff Brown" <[email protected]> wrote: > Supposing your test assembly is MyWCFStuff.Tests.dll, put your configuration > into a MyWCFStuff.Tests.dll.config file. > > This definitely works when running MbUnit v2 tests using Gallio and I think > it should also work using the older MbUnit.GUI.exe as well. > > Make sure the config file is well-formed. You might not get an error if the > config file is malformed under the MbUnit v2 test runners, but it won't work > either. :-p > > Jeff. > > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > > Behalf Of Gene > Sent: Wednesday, August 05, 2009 10:57 AM > To: MbUnit.User > Subject: MbUnit WCF config - how to set things up > > I am trying to use MbUnit.GUI.exe to test code that talks to a WCF server. > In order to talk to the WCF server, the config file needs to have the WCF > system.serviceModel config information in it. I have tried to put the > config info into MbUnit.GUI.exe.config, but it doesn't seem to be seen. > > I get the error: Could not find endpoint element .... which is a symptom of > not having the WCF endpoint defined. > > Can anyone tell me how to get MbUnit.GUI to understand WCF endpoints? > > thanks, > > Gene- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
