Line | |
---|
1 | // ****************************************************************
|
---|
2 | // This is free software licensed under the NUnit license. You
|
---|
3 | // may obtain a copy of the license as well as information regarding
|
---|
4 | // copyright ownership at http://nunit.org/?p=license&r=2.4.
|
---|
5 | // ****************************************************************
|
---|
6 |
|
---|
7 | #pragma once
|
---|
8 |
|
---|
9 | using namespace System;
|
---|
10 | using namespace NUnit::Framework;
|
---|
11 |
|
---|
12 | namespace NUnitSamples
|
---|
13 | {
|
---|
14 | [TestFixture]
|
---|
15 | public __gc class SimpleCPPSample
|
---|
16 | {
|
---|
17 | int fValue1;
|
---|
18 | int fValue2;
|
---|
19 | public:
|
---|
20 | [SetUp] void Init();
|
---|
21 |
|
---|
22 | [Test] void Add();
|
---|
23 | [Test] void DivideByZero();
|
---|
24 | [Test] void Equals();
|
---|
25 | [Test] [Ignore("ignored test")] void IgnoredTest();
|
---|
26 | [Test] [ExpectedException(__typeof(InvalidOperationException))] void ExpectAnException();
|
---|
27 | };
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.