Skip to content

Commit

Permalink
Revert "Removed tools folder with nunit."
Browse files Browse the repository at this point in the history
This reverts commit b3c4fe0.
  • Loading branch information
shawnmclean committed Aug 28, 2015
1 parent 4990afc commit b6c8490
Show file tree
Hide file tree
Showing 87 changed files with 30,367 additions and 0 deletions.
Binary file removed Mandrill.v2.ncrunchsolution
Binary file not shown.
20 changes: 20 additions & 0 deletions tests/AppSettings.example.config
@@ -0,0 +1,20 @@
<appSettings>
<add key="APIKey" value="__ApiKey__" />
<!-- Custom parameters-->
<add key="IsPaidAccount" value="False" />
<add key="IgnoreInvalidSSLCertificate" value = "False" />
<add key="RejectAdd" value="test@test.com"/>
<add key="RejectDelete" value="test@test.com" />
<add key="ValidToEmail" value="test@test.com" />
<add key="FromEmail" value="test@test.com" />
<add key="TemplateExample" value="Test" />
<add key="TemplateLabel" value="test" />
<add key="TemplateCount" value="1" />
<add key="TemplateCountWithLabel" value="1" />
<add key="UniqueExistingEmailSubject" value="Unique email subject to search"/>
<add key="SentEmailId" value="__SentEmailId__" />
<add key="SentEmailSubject" value="Mandrill Integration Test" />
<add key="SentEmailText" value="Example text" />
<add key="SentEmailRecipient" value="something@mailinator.com" />
<add key="Username" value="__Username__" />
</appSettings>
277 changes: 277 additions & 0 deletions tools/nunit/NUnitFitTests.html
@@ -0,0 +1,277 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<h1>NUnit Acceptance Tests</h1>
<p>
Developers love self-referential programs! Hence, NUnit has always run all it's
own tests, even those that are not really unit tests.
<p>Now, beginning with NUnit 2.4, NUnit has top-level tests using Ward Cunningham's
FIT framework. At this time, the tests are pretty rudimentary, but it's a start
and it's a framework for doing more.
<h2>Running the Tests</h2>
<p>Open a console or shell window and navigate to the NUnit bin directory, which
contains this file. To run the test under Microsoft .Net, enter the command
<pre> runFile NUnitFitTests.html TestResults.html .</pre>
To run it under Mono, enter
<pre> mono runFile.exe NUnitFitTests.html TestResults.html .</pre>
Note the space and dot at the end of each command. The results of your test
will be in TestResults.html in the same directory.
<h2>Platform and CLR Version</h2>
<table BORDER cellSpacing="0" cellPadding="5">
<tr>
<td colspan="2">NUnit.Fixtures.PlatformInfo</td>
</tr>
</table>
<h2>Verify Unit Tests</h2>
<p>
Load and run the NUnit unit tests, verifying that the results are as expected.
When these tests are run on different platforms, different numbers of tests may
be skipped, so the values for Skipped and Run tests are informational only.
<p>
The number of tests in each assembly should be constant across all platforms -
any discrepancy usually means that one of the test source files was not
compiled on the platform. There should be no failures and no tests ignored.
<p><b>Note:</b>
At the moment, the nunit.extensions.tests assembly is failing because the
fixture doesn't initialize addins in the test domain.
<p>
<table BORDER cellSpacing="0" cellPadding="5">
<tr>
<td colspan="6">NUnit.Fixtures.AssemblyRunner</td>
</tr>
<tr>
<td>Assembly</td>
<td>Tests()</td>
<td>Run()</td>
<td>Skipped()</td>
<td>Ignored()</td>
<td>Failures()</td>
</tr>
<tr>
<td>nunit.framework.tests.dll</td>
<td>397</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.core.tests.dll</td>
<td>355</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.util.tests.dll</td>
<td>238</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.mocks.tests.dll</td>
<td>43</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.extensions.tests.dll</td>
<td>5</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit-console.tests.dll</td>
<td>40</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.uikit.tests.dll</td>
<td>34</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit-gui.tests.dll</td>
<td>15</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.fixtures.tests.dll</td>
<td>6</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
</table>
<h2>Code Snippet Tests</h2>
<p>
These tests create a test assembly from a snippet of code and then load and run
the tests that it contains, verifying that the structure of the loaded tests is
as expected and that the number of tests run, skipped, ignored or failed is
correct.
<p>
<table BORDER cellSpacing="0" cellPadding="5">
<tr>
<td colspan="6">NUnit.Fixtures.SnippetRunner</td>
</tr>
<tr>
<td>Code</td>
<td>Tree()</td>
<td>Run()</td>
<td>Skipped()</td>
<td>Ignored()</td>
<td>Failures()</td>
</tr>
<tr>
<td><pre>public class TestClass
{
}</pre>
</td>
<td>EMPTY</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;

[TestFixture]
public class TestClass
{
}</pre>
</td>
<td>TestClass</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;

[TestFixture]
public class TestClass
{
[Test]
public void T1() { }
[Test]
public void T2() { }
[Test]
public void T3() { }
}</pre>
</td>
<td><pre>TestClass
&gt;T1
&gt;T2
&gt;T3</pre>
</td>
<td>3</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;

[TestFixture]
public class TestClass1
{
[Test]
public void T1() { }
}

[TestFixture]
public class TestClass2
{
[Test]
public void T2() { }
[Test]
public void T3() { }
}</pre>
</td>
<td><pre>TestClass1
&gt;T1
TestClass2
&gt;T2
&gt;T3</pre>
</td>
<td>3</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;

[TestFixture]
public class TestClass
{
[Test]
public void T1() { }
[Test, Ignore]
public void T2() { }
[Test]
public void T3() { }
}</pre>
</td>
<td><pre>TestClass
&gt;T1
&gt;T2
&gt;T3</pre>
</td>
<td>2</td>
<td>0</td>
<td>1</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;

[TestFixture]
public class TestClass
{
[Test]
public void T1() { }
[Test, Explicit]
public void T2() { }
[Test]
public void T3() { }
}</pre>
</td>
<td><pre>TestClass
&gt;T1
&gt;T2
&gt;T3</pre>
</td>
<td>2</td>
<td>1</td>
<td>0</td>
<td>0</td>
</tr>
</table>
<h2>Summary Information</h2>
<table BORDER cellSpacing="0" cellPadding="5">
<tr>
<td colspan="2">fit.Summary</td>
</tr>
</table>
</body>
</html>
61 changes: 61 additions & 0 deletions tools/nunit/NUnitTests.VisualState.xml
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<VisualState xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ShowCheckBoxes="false">
<TopNode>[0-1000]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\NUnitTests.nunit</TopNode>
<SelectedNode>[0-1000]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\NUnitTests.nunit</SelectedNode>
<ExcludeCategories>false</ExcludeCategories>
<Nodes>
<Node UniqueName="[0-1000]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\NUnitTests.nunit" Expanded="true" />
<Node UniqueName="[0-2906]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit.framework.tests.dll" Expanded="true" />
<Node UniqueName="[0-2907]NUnit" Expanded="true" />
<Node UniqueName="[0-2908]NUnit.Framework" Expanded="true" />
<Node UniqueName="[0-2909]NUnit.Framework.Constraints" Expanded="true" />
<Node UniqueName="[0-2910]NUnit.Framework.Syntax" Expanded="true" />
<Node UniqueName="[0-2911]NUnit.Framework.Tests" Expanded="true" />
<Node UniqueName="[0-4011]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit.core.tests.dll" Expanded="true" />
<Node UniqueName="[0-4012]NUnit" Expanded="true" />
<Node UniqueName="[0-4013]NUnit.Core" Expanded="true" />
<Node UniqueName="[0-4014]NUnit.Core.Tests" Expanded="true" />
<Node UniqueName="[0-4015]NUnit.Core.Tests.Generic" Expanded="true" />
<Node UniqueName="[0-2912]NUnit.Core.Tests.Generic.DeduceTypeArgsFromArgs&lt;T1,T2&gt;" Expanded="true" />
<Node UniqueName="[0-2919]NUnit.Core.Tests.Generic.SimpleGenericFixture&lt;TList&gt;" Expanded="true" />
<Node UniqueName="[0-2940]NUnit.Core.Tests.Generic.TypeParameterUsedWithTestMethod&lt;T&gt;" Expanded="true" />
<Node UniqueName="[0-3280]NUnit.Core.Tests.ParameterizedTestFixture" Expanded="true" />
<Node UniqueName="[0-3297]NUnit.Core.Tests.ParameterizedTestFixtureWithDataSources" Expanded="true" />
<Node UniqueName="[0-3290]NUnit.Core.Tests.ParameterizedTestFixtureWithNullArguments" Expanded="true" />
<Node UniqueName="[0-3324]NUnit.Core.Tests.ParameterizedTestFixtureWithTypeAsArgument" Expanded="true" />
<Node UniqueName="[0-4387]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit.util.tests.dll" Expanded="true" />
<Node UniqueName="[0-4388]NUnit" Expanded="true" />
<Node UniqueName="[0-4389]NUnit.Util" Expanded="true" />
<Node UniqueName="[0-4272]NUnit.Util.Tests.ServiceManagerSetUpFixture" Expanded="true" />
<Node UniqueName="[0-4439]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit.mocks.tests.dll" Expanded="true" />
<Node UniqueName="[0-4440]NUnit" Expanded="true" />
<Node UniqueName="[0-4441]NUnit.Mocks" Expanded="true" />
<Node UniqueName="[0-4442]NUnit.Mocks.Tests" Expanded="true" />
<Node UniqueName="[0-4521]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit-console.tests.dll" Expanded="true" />
<Node UniqueName="[0-4522]NUnit" Expanded="true" />
<Node UniqueName="[0-4523]NUnit.ConsoleRunner" Expanded="true" />
<Node UniqueName="[0-4524]NUnit.ConsoleRunner.Tests" Expanded="true" />
<Node UniqueName="[0-4764]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit.uiexception.tests.dll" Expanded="true" />
<Node UniqueName="[0-4765]NUnit" Expanded="true" />
<Node UniqueName="[0-4766]NUnit.UiException" Expanded="true" />
<Node UniqueName="[0-4767]NUnit.UiException.Tests" Expanded="true" />
<Node UniqueName="[0-4768]NUnit.UiException.Tests.CodeFormatters" Expanded="true" />
<Node UniqueName="[0-4769]NUnit.UiException.Tests.Controls" Expanded="true" />
<Node UniqueName="[0-4770]NUnit.UiException.Tests.StackTraceAnalyzers" Expanded="true" />
<Node UniqueName="[0-4833]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit.uikit.tests.dll" Expanded="true" />
<Node UniqueName="[0-4834]NUnit" Expanded="true" />
<Node UniqueName="[0-4835]NUnit.UiKit" Expanded="true" />
<Node UniqueName="[0-4836]NUnit.UiKit.Tests" Expanded="true" />
<Node UniqueName="[0-4855]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit-gui.tests.dll" Expanded="true" />
<Node UniqueName="[0-4856]NUnit" Expanded="true" />
<Node UniqueName="[0-4857]NUnit.Gui" Expanded="true" />
<Node UniqueName="[0-4858]NUnit.Gui.Tests" Expanded="true" />
<Node UniqueName="[0-5005]D:\Dev\NUnit\nunit-2.6\work\builds\net\3.5\release\tests/nunit-editor.tests.dll" Expanded="true" />
<Node UniqueName="[0-5006]NUnit" Expanded="true" />
<Node UniqueName="[0-5007]NUnit.ProjectEditor" Expanded="true" />
<Node UniqueName="[0-5008]NUnit.ProjectEditor.Tests" Expanded="true" />
<Node UniqueName="[0-5009]NUnit.ProjectEditor.Tests.Model" Expanded="true" />
<Node UniqueName="[0-5010]NUnit.ProjectEditor.Tests.Presenters" Expanded="true" />
<Node UniqueName="[0-5011]NUnit.ProjectEditor.Tests.Views" Expanded="true" />
</Nodes>
</VisualState>

0 comments on commit b6c8490

Please sign in to comment.