New Posts New Posts RSS Feed: Sample 1rst unittest does not compile
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Sample 1rst unittest does not compile

 Post Reply Post Reply
Author
Peer View Drop Down
Newbie
Newbie
Avatar

Joined: 31-Aug-2010
Location: Netherlands
Posts: 15
Post Options Post Options   Quote Peer Quote  Post ReplyReply Direct Link To This Post Topic: Sample 1rst unittest does not compile
    Posted: 10-Sep-2010 at 12:47pm
Hi,
Today I worked on the sample "Code Sample - Tour of DevForce Silverlight - Addendum: Unit Testing with the Silverlight Unit Test Framework"
 
The instructions in this sample are clear but code in the unittest does not compile:
 
1: the line
namespace SilverlightTest : Microsoft.Silverlight.Testing.SilverlightTest
: Error 1 { expected G:\projects\DevForce\SimpleSteps4\SilverlightTest\Tests.cs 20 27 SilverlightTest
but the curly brackets seems to be ok!
 
2: the line
base.TestComplete();
Error 2 'object' does not contain a definition for 'TestComplete' G:\projects\DevForce\SimpleSteps4\SilverlightTest\Tests.cs 40 18 SilverlightTest
If somebody has a clue, the answer is appreciated :)
Thank, Peer
 
 
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 10-Sep-2010 at 1:01pm
Did you build the solution by reading the documentation, or did you download the zip from the DevForce Resource Center.  We find that if you build the solution from the documentation, it is easy to make some small mistake that will cause your solution not to compile or run.  The zips, on the other hand, are all tested before the release, and we know for sure that at the very least, they will all compile.
Back to Top
Peer View Drop Down
Newbie
Newbie
Avatar

Joined: 31-Aug-2010
Location: Netherlands
Posts: 15
Post Options Post Options   Quote Peer Quote  Post ReplyReply Direct Link To This Post Posted: 10-Sep-2010 at 1:15pm
David,
I checked the zipfile and found the sampleapp "010_IntroToDevForce\TourOfDfSilverlight\CodeCS\Tour_Pt99Completed"
There is a syntaxerror in the web documentation, the namespace is derived instead of the testclass.
Thank You ,
Peer
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down