This is a migrated thread and some comments may be shown as answers.

Cannot compile the QuickStarts_NUnit_CS Sample

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joe Young
Top achievements
Rank 1
Joe Young asked on 22 Sep 2011, 09:55 PM
The title stays it all.
Its missing the reference to NUnit.Core.
I added the 2.5.2 reference mentioned here (http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/getting-started/using-nunit.aspx) but then get even more errors.

"Error 36 The name 'TestContext' does not exist in the current context C:\Program Files (x86)\Telerik\Testing Framework 2011.1\Samples\Testing Framework\QuickStarts_NUnit_CS\Tests\Frames.cs 51 126 QuickStarts_NUnit_CS"

Fixing that then results in

Error 36 'NUnit.Core.TestContext' does not contain a definition for 'CurrentContext' C:\Program Files (x86)\Telerik\Testing Framework 2011.1\Samples\Testing Framework\QuickStarts_NUnit_CS\Tests\Frames.cs 63 128 QuickStarts_NUnit_CS

Are there any samples that work or am I stuck having to fix the sample code while trying to learn this framework? 

Sorry to sound harsh, but I find this quite frustrating.


1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 23 Sep 2011, 03:45 PM
Hello Joe,
    here's the easiest way to get your NUnit test compiled without issue:
http://screencast.com/t/cG7thfKhRpV5

Best wishes,
Stoich
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Joe Young
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or