Print Page | Close Window

Sample 1rst unittest does not compile

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2146
Printed Date: 13-Mar-2025 at 7:37am


Topic: Sample 1rst unittest does not compile
Posted By: Peer
Subject: Sample 1rst unittest does not compile
Date 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
 
 



Replies:
Posted By: davidklitzke
Date 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.


Posted By: Peer
Date 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



Print Page | Close Window