Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move the extenstion methods into MvcMailMessage

  • Loading branch information...
commit ce48a7ffa267405dd0d865a77a44499bc8d7f5de 1 parent 6454b61
SM Sohan authored
Showing with 11,808 additions and 345 deletions.
  1. +4 −0 .nuget/packages.config
  2. +91 −91 Mvc.Mailer.Test/Mvc.Mailer.Test.csproj
  3. +67 −67 Mvc.Mailer.Test/{ExtensionMethods/MailMessageExtensionsTest.cs → MvcMailMessageTest.cs}
  4. +4 −0 Mvc.Mailer.Test/packages.config
  5. +26 −26 MvcMailer.sln → Mvc.Mailer.sln
  6. +0 −42 Mvc.Mailer/ExtensionMethods/MailMessageExtensions.cs
  7. +108 −109 Mvc.Mailer/Mvc.Mailer.csproj
  8. +44 −10 Mvc.Mailer/MvcMailMessage.cs
  9. BIN  Mvc.Mailer/NuGet/input/lib/40/Mvc.Mailer.dll
  10. BIN  Mvc.Mailer/NuGet/output/MvcMailer.1.2.nupkg
  11. +63 −0 Rakefile
  12. BIN  packages/NUnit.2.6.1/NUnit.2.6.1.nupkg
  13. BIN  packages/NUnit.2.6.1/lib/nunit.framework.dll
  14. +10,892 −0 packages/NUnit.2.6.1/lib/nunit.framework.xml
  15. +15 −0 packages/NUnit.2.6.1/license.txt
  16. BIN  packages/NUnit.Runners.2.6.1/NUnit.Runners.2.6.1.nupkg
  17. +15 −0 packages/NUnit.Runners.2.6.1/license.txt
  18. +4 −0 packages/NUnit.Runners.2.6.1/tools/agent.conf
  19. +18 −0 packages/NUnit.Runners.2.6.1/tools/agent.log.conf
  20. +18 −0 packages/NUnit.Runners.2.6.1/tools/launcher.log.conf
  21. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Failure.jpg
  22. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Ignored.jpg
  23. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Inconclusive.jpg
  24. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Skipped.jpg
  25. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Success.jpg
  26. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Failure.jpg
  27. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Ignored.jpg
  28. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Inconclusive.jpg
  29. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Skipped.jpg
  30. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Success.jpg
  31. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Failure.png
  32. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Ignored.png
  33. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Inconclusive.png
  34. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Skipped.png
  35. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Success.png
  36. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Failure.png
  37. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Ignored.png
  38. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Inconclusive.png
  39. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/SeriousWarning.png
  40. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Skipped.png
  41. BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Success.png
  42. BIN  packages/NUnit.Runners.2.6.1/tools/lib/log4net.dll
  43. BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit-console-runner.dll
  44. BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit-gui-runner.dll
  45. BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.core.dll
  46. BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.core.interfaces.dll
  47. BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.uiexception.dll
  48. BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.uikit.dll
  49. BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.util.dll
  50. BIN  packages/NUnit.Runners.2.6.1/tools/nunit-agent-x86.exe
  51. +37 −0 packages/NUnit.Runners.2.6.1/tools/nunit-agent-x86.exe.config
  52. BIN  packages/NUnit.Runners.2.6.1/tools/nunit-agent.exe
  53. +37 −0 packages/NUnit.Runners.2.6.1/tools/nunit-agent.exe.config
  54. BIN  packages/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe
  55. +31 −0 packages/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe.config
  56. BIN  packages/NUnit.Runners.2.6.1/tools/nunit-console.exe
  57. +31 −0 packages/NUnit.Runners.2.6.1/tools/nunit-console.exe.config
  58. BIN  packages/NUnit.Runners.2.6.1/tools/nunit-editor.exe
  59. BIN  packages/NUnit.Runners.2.6.1/tools/nunit-x86.exe
  60. +30 −0 packages/NUnit.Runners.2.6.1/tools/nunit-x86.exe.config
  61. BIN  packages/NUnit.Runners.2.6.1/tools/nunit.exe
  62. +30 −0 packages/NUnit.Runners.2.6.1/tools/nunit.exe.config
  63. BIN  packages/NUnit.Runners.2.6.1/tools/nunit.framework.dll
  64. BIN  packages/NUnit.Runners.2.6.1/tools/pnunit-agent.exe
  65. +77 −0 packages/NUnit.Runners.2.6.1/tools/pnunit-agent.exe.config
  66. BIN  packages/NUnit.Runners.2.6.1/tools/pnunit-launcher.exe
  67. +77 −0 packages/NUnit.Runners.2.6.1/tools/pnunit-launcher.exe.config
  68. BIN  packages/NUnit.Runners.2.6.1/tools/pnunit.framework.dll
  69. BIN  packages/NUnit.Runners.2.6.1/tools/pnunit.tests.dll
  70. +3 −0  packages/NUnit.Runners.2.6.1/tools/runpnunit.bat
  71. +82 −0 packages/NUnit.Runners.2.6.1/tools/test.conf
  72. +4 −0 packages/repositories.config
4 .nuget/packages.config
View
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="NUnit.Runners" version="2.6.1" />
+</packages>
182 Mvc.Mailer.Test/Mvc.Mailer.Test.csproj
View
@@ -1,92 +1,92 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{3664DD95-3C70-421E-96CA-9B63EE086C27}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Mvc.Mailer.Test</RootNamespace>
- <AssemblyName>Mvc.Mailer.Test</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <PlatformTarget>AnyCPU</PlatformTarget>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Moq">
- <HintPath>..\lib\Moq\Moq.dll</HintPath>
- </Reference>
- <Reference Include="nunit.framework, Version=2.5.9.10348, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\lib\NUnit.2.5.9.10348\lib\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.configuration" />
- <Reference Include="System.Core" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Web" />
- <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\lib\MVC4\System.Web.Mvc.dll</HintPath>
- </Reference>
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="ExtensionMethods\HtmlHelperExtensionsTest.cs" />
- <Compile Include="LinkedResourceProviderTest.cs" />
- <Compile Include="MailerBaseTest.cs" />
- <Compile Include="ExtensionMethods\MailMessageExtensionsTest.cs" />
- <Compile Include="Mocks.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="SmtpClientWrapperTest.cs" />
- <Compile Include="StringResultTest.cs" />
- <Compile Include="TestSmtpClientTest.cs" />
- <Compile Include="ExtensionMethods\UrlHelperExtensionsTest.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Mvc.Mailer\Mvc.Mailer.csproj">
- <Project>{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}</Project>
- <Name>Mvc.Mailer</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <Content Include="Chrysanthemum.jpg">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{3664DD95-3C70-421E-96CA-9B63EE086C27}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Mvc.Mailer.Test</RootNamespace>
+ <AssemblyName>Mvc.Mailer.Test</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Moq">
+ <HintPath>..\lib\Moq\Moq.dll</HintPath>
+ </Reference>
+ <Reference Include="nunit.framework, Version=2.5.9.10348, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\lib\NUnit.2.5.9.10348\lib\nunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.configuration" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\lib\MVC4\System.Web.Mvc.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ExtensionMethods\HtmlHelperExtensionsTest.cs" />
+ <Compile Include="LinkedResourceProviderTest.cs" />
+ <Compile Include="MailerBaseTest.cs" />
+ <Compile Include="MvcMailMessageTest.cs" />
+ <Compile Include="Mocks.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="SmtpClientWrapperTest.cs" />
+ <Compile Include="StringResultTest.cs" />
+ <Compile Include="TestSmtpClientTest.cs" />
+ <Compile Include="ExtensionMethods\UrlHelperExtensionsTest.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Mvc.Mailer\Mvc.Mailer.csproj">
+ <Project>{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}</Project>
+ <Name>Mvc.Mailer</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Chrysanthemum.jpg">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>
+ </PostBuildEvent>
+ </PropertyGroup>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
134 ...est/ExtensionMethods/MailMessageExtensionsTest.cs → Mvc.Mailer.Test/MvcMailMessageTest.cs
View
@@ -1,68 +1,68 @@
-using System;
-using NUnit.Framework;
-using System.Net.Mail;
-using System.IO;
-using Moq;
-
-namespace Mvc.Mailer.Test.ExtensionMethods {
- [TestFixture]
- public class MailMessageExtensionsTest {
-
- private SmtpClientWrapper _smtpClient;
- private MailMessage _mailMessage;
- private DirectoryInfo _mailDirectory;
-
- [SetUp]
- public void SetUp() {
- var smtpClient = new SmtpClient {
- DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory
- };
-
- _mailDirectory = Directory.CreateDirectory(Path.Combine(Environment.CurrentDirectory, "Mails"));
- smtpClient.PickupDirectoryLocation = _mailDirectory.FullName;
- smtpClient.Host = "smtp.gmail.com";
- smtpClient.Port = 597;
- _smtpClient = new SmtpClientWrapper { InnerSmtpClient = smtpClient };
- _mailMessage = new MailMessage { From = new MailAddress("gaga@gaga.com") };
- _mailMessage.To.Add("gigi@gigi.com");
- _mailMessage.Subject = "Hello!";
- _mailMessage.Body = "Mail Body";
- }
-
- [Test]
- public void TestSend() {
- _mailMessage.Send(_smtpClient);
- Assert.Pass("Mail Send working since no exception wast thrown");
- }
-
- [Test]
- public void TestSendAsync() {
- _mailMessage.SendAsync(smtpClient: _smtpClient);
- Assert.Pass("Mail Send Async working since no exception wast thrown");
- }
-
- [Test]
- public void SendAsync_with_userState_should_pass_that() {
- var client = new Mock<ISmtpClient>();
- client.Setup(c => c.SendAsync(_mailMessage, "something"));
- _mailMessage.SendAsync(userState: "something", smtpClient: client.Object);
- client.VerifyAll();
- }
-
- [Test]
- public void In_Test_Mode_should_use_TestSmtpClient() {
- TestSmtpClient.SentMails.Clear();
- MailerBase.IsTestModeEnabled = true;
- _mailMessage.Send();
- Assert.AreEqual(1, TestSmtpClient.SentMails.Count);
- Assert.AreSame(_mailMessage, TestSmtpClient.SentMails[0]);
- }
-
- [TearDown]
- public void TearDown() {
- MailerBase.IsTestModeEnabled = false;
- TestSmtpClient.SentMails.Clear();
- _mailDirectory.Delete(true);
- }
- }
+using System;
+using NUnit.Framework;
+using System.Net.Mail;
+using System.IO;
+using Moq;
+
+namespace Mvc.Mailer.Test {
+ [TestFixture]
+ public class MvcMailMessageTest {
+
+ private SmtpClientWrapper _smtpClient;
+ private MvcMailMessage _mailMessage;
+ private DirectoryInfo _mailDirectory;
+
+ [SetUp]
+ public void SetUp() {
+ var smtpClient = new SmtpClient {
+ DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory
+ };
+
+ _mailDirectory = Directory.CreateDirectory(Path.Combine(Environment.CurrentDirectory, "Mails"));
+ smtpClient.PickupDirectoryLocation = _mailDirectory.FullName;
+ smtpClient.Host = "smtp.gmail.com";
+ smtpClient.Port = 597;
+ _smtpClient = new SmtpClientWrapper { InnerSmtpClient = smtpClient };
+ _mailMessage = new MvcMailMessage { From = new MailAddress("gaga@gaga.com") };
+ _mailMessage.To.Add("gigi@gigi.com");
+ _mailMessage.Subject = "Hello!";
+ _mailMessage.Body = "Mail Body";
+ }
+
+ [Test]
+ public void TestSend() {
+ _mailMessage.Send(_smtpClient);
+ Assert.Pass("Mail Send working since no exception wast thrown");
+ }
+
+ [Test]
+ public void TestSendAsync() {
+ _mailMessage.SendAsync(smtpClient: _smtpClient);
+ Assert.Pass("Mail Send Async working since no exception wast thrown");
+ }
+
+ [Test]
+ public void SendAsync_with_userState_should_pass_that() {
+ var client = new Mock<ISmtpClient>();
+ client.Setup(c => c.SendAsync(_mailMessage, "something"));
+ _mailMessage.SendAsync(userState: "something", smtpClient: client.Object);
+ client.VerifyAll();
+ }
+
+ [Test]
+ public void In_Test_Mode_should_use_TestSmtpClient() {
+ TestSmtpClient.SentMails.Clear();
+ MailerBase.IsTestModeEnabled = true;
+ _mailMessage.Send();
+ Assert.AreEqual(1, TestSmtpClient.SentMails.Count);
+ Assert.AreSame(_mailMessage, TestSmtpClient.SentMails[0]);
+ }
+
+ [TearDown]
+ public void TearDown() {
+ MailerBase.IsTestModeEnabled = false;
+ TestSmtpClient.SentMails.Clear();
+ _mailDirectory.Delete(true);
+ }
+ }
}
4 Mvc.Mailer.Test/packages.config
View
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="NUnit" version="2.6.1" targetFramework="net40" />
+</packages>
52 MvcMailer.sln → Mvc.Mailer.sln
View
@@ -1,26 +1,26 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvc.Mailer", "Mvc.Mailer\Mvc.Mailer.csproj", "{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvc.Mailer.Test", "Mvc.Mailer.Test\Mvc.Mailer.Test.csproj", "{3664DD95-3C70-421E-96CA-9B63EE086C27}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {37B58562-EF1A-47FE-A02E-98C82D5FB5BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {37B58562-EF1A-47FE-A02E-98C82D5FB5BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {37B58562-EF1A-47FE-A02E-98C82D5FB5BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {37B58562-EF1A-47FE-A02E-98C82D5FB5BC}.Release|Any CPU.Build.0 = Release|Any CPU
- {3664DD95-3C70-421E-96CA-9B63EE086C27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3664DD95-3C70-421E-96CA-9B63EE086C27}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3664DD95-3C70-421E-96CA-9B63EE086C27}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3664DD95-3C70-421E-96CA-9B63EE086C27}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvc.Mailer", "Mvc.Mailer\Mvc.Mailer.csproj", "{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvc.Mailer.Test", "Mvc.Mailer.Test\Mvc.Mailer.Test.csproj", "{3664DD95-3C70-421E-96CA-9B63EE086C27}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {37B58562-EF1A-47FE-A02E-98C82D5FB5BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {37B58562-EF1A-47FE-A02E-98C82D5FB5BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {37B58562-EF1A-47FE-A02E-98C82D5FB5BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {37B58562-EF1A-47FE-A02E-98C82D5FB5BC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3664DD95-3C70-421E-96CA-9B63EE086C27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3664DD95-3C70-421E-96CA-9B63EE086C27}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3664DD95-3C70-421E-96CA-9B63EE086C27}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3664DD95-3C70-421E-96CA-9B63EE086C27}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
42 Mvc.Mailer/ExtensionMethods/MailMessageExtensions.cs
View
@@ -1,42 +0,0 @@
-using System.Net.Mail;
-
-namespace Mvc.Mailer {
- /// <summary>
- /// Adds the much needed send method to MailMessage so that you can do the following
- /// MailMessage email = new MyMailer().WelcomeMessage();
- /// email.Send();
- ///
- /// The underlying implementation utilizes the SMTPClient class to send the emails.
- /// </summary>
- public static class MailMessageExtensions {
- /// <summary>
- /// Sends a MailMessage using smtpClient
- /// </summary>
- /// <param name="message">The mailMessage Object</param>
- /// <param name="smtpClient">leave null to use default System.Net.Mail.SmtpClient</param>
- public static void Send(this MailMessage message, ISmtpClient smtpClient = null) {
- smtpClient = smtpClient ?? GetSmtpClient();
- using (smtpClient) {
- smtpClient.Send(message);
- }
- }
-
- /// <summary>
- /// Asynchronously Sends a MailMessage using smtpClient
- /// </summary>
- /// <param name="message">The mailMessage Object</param>
- /// <param name="userState">The userState</param>
- /// <param name="smtpClient">leave null to use default System.Net.Mail.SmtpClient</param>
- public static void SendAsync(this MailMessage message, object userState = null, ISmtpClient smtpClient = null) {
- smtpClient = smtpClient ?? GetSmtpClient();
- smtpClient.SendAsync(message, userState);
- }
-
- public static ISmtpClient GetSmtpClient() {
- if (MailerBase.IsTestModeEnabled) {
- return new TestSmtpClient();
- }
- return new SmtpClientWrapper();
- }
- }
-}
217 Mvc.Mailer/Mvc.Mailer.csproj
View
@@ -1,110 +1,109 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Mvc.Mailer</RootNamespace>
- <AssemblyName>Mvc.Mailer</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <TargetFrameworkProfile />
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.configuration" />
- <Reference Include="System.Core" />
- <Reference Include="System.Web" />
- <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\lib\MVC4\System.Web.Mvc.dll</HintPath>
- </Reference>
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="ExtensionMethods\UrlHelperExtensions.cs" />
- <Compile Include="EmptyHttpContext.cs" />
- <Compile Include="ILinkedResourceProvider.cs" />
- <Compile Include="LinkedResourceProvider.cs" />
- <Compile Include="MvcMailMessage.cs" />
- <Compile Include="SmtpClientBase.cs" />
- <Compile Include="SmtpClientWrapper.cs" />
- <Compile Include="TestSmtpClient.cs" />
- <Compile Include="ISmtpClient.cs" />
- <Compile Include="ExtensionMethods\HtmlHelperExtensions.cs" />
- <Compile Include="MailerBase.cs" />
- <Compile Include="ExtensionMethods\MailMessageExtensions.cs" />
- <Compile Include="StringResult.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="content\Views\web.config.transform">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- <None Include="content\web.config.transform">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- <SubType>Designer</SubType>
- </None>
- <None Include="NuGet\input\tools\cs\IMailerMethodTemplate.cs.t4" />
- <None Include="NuGet\input\tools\cs\MailerMethodTemplate.cs.t4" />
- <None Include="NuGet\input\tools\Mailer.Aspx.ps1" />
- <None Include="NuGet\input\tools\Mailer.Razor.ps1" />
- <None Include="NuGet\input\tools\Install.ps1" />
- <None Include="NuGet\input\tools\cs\IMailerTemplate.cs.t4" />
- <None Include="NuGet\input\tools\cs\MailerTemplate.cs.t4" />
- <None Include="NuGet\input\tools\MailerFunctions.ps1" />
- <None Include="NuGet\input\tools\view\aspx\Mail.text.aspx.cs.t4" />
- <None Include="NuGet\input\tools\view\aspx\Layout.text.Master.cs.t4" />
- <None Include="NuGet\input\tools\view\aspx\Layout.Master.cs.t4" />
- <None Include="NuGet\input\tools\view\aspx\Mail.aspx.cs.t4" />
- <None Include="NuGet\input\tools\view\razor\Layout.text.cshtml.cs.t4" />
- <None Include="NuGet\input\tools\view\razor\Mail.text.cshtml.cs.t4" />
- <None Include="NuGet\input\tools\view\razor\Layout.cshtml.cs.t4" />
- <None Include="NuGet\input\tools\view\razor\Mail.cshtml.cs.t4" />
- <None Include="NuGet\MvcMailer.nuspec">
- <SubType>Designer</SubType>
- </None>
- </ItemGroup>
- <ItemGroup />
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PostBuildEvent>copy *.dll "$(ProjectDir)NuGet\input\lib\40"
-xcopy content "$(ProjectDir)NuGet\input\content" /S /Y
-cd "$(ProjectDir)NuGet"
-IF NOT EXIST output md output
-nuget pack mvcmailer.nuspec -b input -o output
-</PostBuildEvent>
- </PropertyGroup>
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Mvc.Mailer</RootNamespace>
+ <AssemblyName>Mvc.Mailer</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkProfile />
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.configuration" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\lib\MVC4\System.Web.Mvc.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ExtensionMethods\UrlHelperExtensions.cs" />
+ <Compile Include="EmptyHttpContext.cs" />
+ <Compile Include="ILinkedResourceProvider.cs" />
+ <Compile Include="LinkedResourceProvider.cs" />
+ <Compile Include="MvcMailMessage.cs" />
+ <Compile Include="SmtpClientBase.cs" />
+ <Compile Include="SmtpClientWrapper.cs" />
+ <Compile Include="TestSmtpClient.cs" />
+ <Compile Include="ISmtpClient.cs" />
+ <Compile Include="ExtensionMethods\HtmlHelperExtensions.cs" />
+ <Compile Include="MailerBase.cs" />
+ <Compile Include="StringResult.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="content\Views\web.config.transform">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
+ <None Include="content\web.config.transform">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ <SubType>Designer</SubType>
+ </None>
+ <None Include="NuGet\input\tools\cs\IMailerMethodTemplate.cs.t4" />
+ <None Include="NuGet\input\tools\cs\MailerMethodTemplate.cs.t4" />
+ <None Include="NuGet\input\tools\Mailer.Aspx.ps1" />
+ <None Include="NuGet\input\tools\Mailer.Razor.ps1" />
+ <None Include="NuGet\input\tools\Install.ps1" />
+ <None Include="NuGet\input\tools\cs\IMailerTemplate.cs.t4" />
+ <None Include="NuGet\input\tools\cs\MailerTemplate.cs.t4" />
+ <None Include="NuGet\input\tools\MailerFunctions.ps1" />
+ <None Include="NuGet\input\tools\view\aspx\Mail.text.aspx.cs.t4" />
+ <None Include="NuGet\input\tools\view\aspx\Layout.text.Master.cs.t4" />
+ <None Include="NuGet\input\tools\view\aspx\Layout.Master.cs.t4" />
+ <None Include="NuGet\input\tools\view\aspx\Mail.aspx.cs.t4" />
+ <None Include="NuGet\input\tools\view\razor\Layout.text.cshtml.cs.t4" />
+ <None Include="NuGet\input\tools\view\razor\Mail.text.cshtml.cs.t4" />
+ <None Include="NuGet\input\tools\view\razor\Layout.cshtml.cs.t4" />
+ <None Include="NuGet\input\tools\view\razor\Mail.cshtml.cs.t4" />
+ <None Include="NuGet\MvcMailer.nuspec">
+ <SubType>Designer</SubType>
+ </None>
+ </ItemGroup>
+ <ItemGroup />
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>copy *.dll "$(ProjectDir)NuGet\input\lib\40"
+xcopy content "$(ProjectDir)NuGet\input\content" /S /Y
+cd "$(ProjectDir)NuGet"
+IF NOT EXIST output md output
+nuget pack mvcmailer.nuspec -b input -o output
+</PostBuildEvent>
+ </PropertyGroup>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
54 Mvc.Mailer/MvcMailMessage.cs
View
@@ -1,10 +1,44 @@
-using System.Collections.Generic;
-using System.Net.Mail;
-
-namespace Mvc.Mailer {
- public class MvcMailMessage : MailMessage {
- public string ViewName { get; set; }
- public string MasterName { get; set; }
- public Dictionary<string,string> LinkedResources { get; set; }
- }
-}
+using System.Collections.Generic;
+using System.Net.Mail;
+
+namespace Mvc.Mailer {
+ public class MvcMailMessage : MailMessage {
+ public string ViewName { get; set; }
+ public string MasterName { get; set; }
+ public Dictionary<string,string> LinkedResources { get; set; }
+
+ /// <summary>
+ /// Sends a MailMessage using smtpClient
+ /// </summary>
+ /// <param name="smtpClient">leave null to use default System.Net.Mail.SmtpClient</param>
+ public virtual void Send(ISmtpClient smtpClient = null)
+ {
+ smtpClient = smtpClient ?? GetSmtpClient();
+ using (smtpClient)
+ {
+ smtpClient.Send(this);
+ }
+ }
+
+ /// <summary>
+ /// Asynchronously Sends a MailMessage using smtpClient
+ /// </summary>
+ /// <param name="userState">The userState</param>
+ /// <param name="smtpClient">leave null to use default System.Net.Mail.SmtpClient</param>
+ public virtual void SendAsync(object userState = null, ISmtpClient smtpClient = null)
+ {
+ smtpClient = smtpClient ?? GetSmtpClient();
+ smtpClient.SendAsync(this, userState);
+ }
+
+ public virtual ISmtpClient GetSmtpClient()
+ {
+ if (MailerBase.IsTestModeEnabled)
+ {
+ return new TestSmtpClient();
+ }
+ return new SmtpClientWrapper();
+ }
+
+ }
+}
BIN  Mvc.Mailer/NuGet/input/lib/40/Mvc.Mailer.dll
View
Binary file not shown
BIN  Mvc.Mailer/NuGet/output/MvcMailer.1.2.nupkg
View
Binary file not shown
63 Rakefile
View
@@ -0,0 +1,63 @@
+require 'rexml/document'
+include REXML
+
+PROJECT_NAME = "Mvc.Mailer"
+BUILD_CONFIG = "Debug"
+
+def build target_name, target, build_config
+ msbuild_path = "C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe"
+ config = "#{target_name} /p:Configuration=#{build_config} /t:#{target} /nologo /verbosity:minimal"
+ sh "#{msbuild_path} #{config}"
+end
+
+def test test_project_name
+ nunit_path = "packages/NUnit.Runners.2.6.1/tools/nunit-console.exe"
+ config = "#{test_project_name}/bin/#{BUILD_CONFIG}/#{test_project_name}.dll /xml=build/#{test_project_name}.xml /nologo"
+ sh "#{nunit_path} #{config}"
+end
+
+def update_nuspec_version version
+ #package//metadata/version
+ config = nil
+ File.open("#{PROJECT_NAME}.nuspec", 'r') do |config_file|
+ config = Document.new(config_file)
+ node = config.root.elements['metadata/version']
+ node.text = version.to_s
+ end
+
+ formatter = REXML::Formatters::Default.new
+ File.open("#{PROJECT_NAME}.nuspec", 'w') do |result|
+ formatter.write(config, result)
+ end
+end
+
+task :default => [:clean, :compile, :test]
+
+task :clean do
+ build "#{PROJECT_NAME}.sln", "clean", BUILD_CONFIG
+end
+
+task :compile => [:clean] do
+ build "#{PROJECT_NAME}.sln", "build", BUILD_CONFIG
+end
+
+task :test => [:compile] do
+ test "#{PROJECT_NAME}.Test"
+end
+
+#rake nuget v=0.3.0
+task :package do
+ if ENV['v']
+ puts "Updating NuGet package to version #{ENV['v']}"
+ update_nuspec_version "#{ENV['v']}"
+ end
+ build "#{PROJECT_NAME}.sln", "build", "NuGet"
+ sh "nuget pack #{PROJECT_NAME}.nuspec -b build\\nuget -o build\\nuget_packages"
+end
+
+#rake nuget v=0.3.0 k=<nuget_access_key>
+task :publish => [:package] do
+ if ENV['k'] && ENV['v']
+ sh "nuget push build\\nuget_packages\\#{PROJECT_NAME}#{ENV['v']}.nupkg #{ENV['k']}"
+ end
+end
BIN  packages/NUnit.2.6.1/NUnit.2.6.1.nupkg
View
Binary file not shown
BIN  packages/NUnit.2.6.1/lib/nunit.framework.dll
View
Binary file not shown
10,892 packages/NUnit.2.6.1/lib/nunit.framework.xml
View
10,892 additions, 0 deletions not shown
15 packages/NUnit.2.6.1/license.txt
View
@@ -0,0 +1,15 @@
+Copyright � 2002-2012 Charlie Poole
+Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov
+Copyright � 2000-2002 Philip A. Craig
+
+This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required.
+
+Portions Copyright � 2002-2012 Charlie Poole or Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright � 2000-2002 Philip A. Craig
+
+2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+
+3. This notice may not be removed or altered from any source distribution.
BIN  packages/NUnit.Runners.2.6.1/NUnit.Runners.2.6.1.nupkg
View
Binary file not shown
15 packages/NUnit.Runners.2.6.1/license.txt
View
@@ -0,0 +1,15 @@
+Copyright � 2002-2012 Charlie Poole
+Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov
+Copyright � 2000-2002 Philip A. Craig
+
+This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required.
+
+Portions Copyright � 2002-2012 Charlie Poole or Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright � 2000-2002 Philip A. Craig
+
+2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+
+3. This notice may not be removed or altered from any source distribution.
4 packages/NUnit.Runners.2.6.1/tools/agent.conf
View
@@ -0,0 +1,4 @@
+<AgentConfig>
+ <Port>8080</Port>
+ <PathToAssemblies>.</PathToAssemblies>
+</AgentConfig>
18 packages/NUnit.Runners.2.6.1/tools/agent.log.conf
View
@@ -0,0 +1,18 @@
+<log4net>
+ <!-- A1 is set to be a ConsoleAppender -->
+ <appender name="A1" type="log4net.Appender.ConsoleAppender">
+
+ <!-- A1 uses PatternLayout -->
+ <layout type="log4net.Layout.PatternLayout">
+ <!-- Print the date in ISO 8601 format -->
+ <conversionPattern value="%-5level %logger - %message%newline" />
+ </layout>
+ </appender>
+
+ <!-- Set root logger level to DEBUG and its only appender to A1 -->
+ <root>
+ <level value="Info" />
+ <appender-ref ref="A1" />
+ </root>
+
+</log4net>
18 packages/NUnit.Runners.2.6.1/tools/launcher.log.conf
View
@@ -0,0 +1,18 @@
+<log4net>
+ <!-- A1 is set to be a ConsoleAppender -->
+ <appender name="A1" type="log4net.Appender.ConsoleAppender">
+
+ <!-- A1 uses PatternLayout -->
+ <layout type="log4net.Layout.PatternLayout">
+ <!-- Print the date in ISO 8601 format -->
+ <conversionPattern value="%-5level %logger - %message%newline" />
+ </layout>
+ </appender>
+
+ <!-- Set root logger level to DEBUG and its only appender to A1 -->
+ <root>
+ <level value="Info" />
+ <appender-ref ref="A1" />
+ </root>
+
+</log4net>
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Failure.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Ignored.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Inconclusive.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Skipped.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Circles/Success.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Failure.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Ignored.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Inconclusive.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Skipped.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Classic/Success.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Failure.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Ignored.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Inconclusive.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Skipped.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Default/Success.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Failure.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Ignored.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Inconclusive.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/SeriousWarning.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Skipped.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/Images/Tree/Visual Studio/Success.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  packages/NUnit.Runners.2.6.1/tools/lib/log4net.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit-console-runner.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit-gui-runner.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.core.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.core.interfaces.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.uiexception.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.uikit.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/lib/nunit.util.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/nunit-agent-x86.exe
View
Binary file not shown
37 packages/NUnit.Runners.2.6.1/tools/nunit-agent-x86.exe.config
View
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <!--
+ The .NET 2.0 build of nunit-agent only
+ runs under .NET 2.0 or higher. The setting
+ useLegacyV2RuntimeActivationPolicy only applies
+ under .NET 4.0 and permits use of mixed mode
+ assemblies, which would otherwise not load
+ correctly.
+ -->
+ <startup useLegacyV2RuntimeActivationPolicy="true">
+ <!--
+ Nunit-agent is normally run by the console or gui
+ runners and not independently. In normal usage,
+ the runner specifies which runtime should be used.
+
+ Do NOT add any supportedRuntime elements here,
+ since they may prevent the runner from controlling
+ the runtime that is used!
+ -->
+ </startup>
+
+ <runtime>
+ <!-- Ensure that test exceptions don't crash NUnit -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
+ <loadFromRemoteSources enabled="true" />
+
+ <!-- Look for addins in the addins directory for now -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="lib;addins"/>
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
BIN  packages/NUnit.Runners.2.6.1/tools/nunit-agent.exe
View
Binary file not shown
37 packages/NUnit.Runners.2.6.1/tools/nunit-agent.exe.config
View
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <!--
+ The .NET 2.0 build of nunit-agent only
+ runs under .NET 2.0 or higher. The setting
+ useLegacyV2RuntimeActivationPolicy only applies
+ under .NET 4.0 and permits use of mixed mode
+ assemblies, which would otherwise not load
+ correctly.
+ -->
+ <startup useLegacyV2RuntimeActivationPolicy="true">
+ <!--
+ Nunit-agent is normally run by the console or gui
+ runners and not independently. In normal usage,
+ the runner specifies which runtime should be used.
+
+ Do NOT add any supportedRuntime elements here,
+ since they may prevent the runner from controlling
+ the runtime that is used!
+ -->
+ </startup>
+
+ <runtime>
+ <!-- Ensure that test exceptions don't crash NUnit -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
+ <loadFromRemoteSources enabled="true" />
+
+ <!-- Look for addins in the addins directory for now -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="lib;addins"/>
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
BIN  packages/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe
View
Binary file not shown
31 packages/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe.config
View
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <!--
+ The .NET 2.0 build of the console runner only
+ runs under .NET 2.0 or higher. The setting
+ useLegacyV2RuntimeActivationPolicy only applies
+ under .NET 4.0 and permits use of mixed mode
+ assemblies, which would otherwise not load
+ correctly.
+ -->
+ <startup useLegacyV2RuntimeActivationPolicy="true">
+ <!-- Comment out the next line to force use of .NET 4.0 -->
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v4.0.30319" />
+ </startup>
+
+ <runtime>
+ <!-- Ensure that test exceptions don't crash NUnit -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
+ <loadFromRemoteSources enabled="true" />
+
+ <!-- Look for addins in the addins directory for now -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="lib;addins"/>
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
BIN  packages/NUnit.Runners.2.6.1/tools/nunit-console.exe
View
Binary file not shown
31 packages/NUnit.Runners.2.6.1/tools/nunit-console.exe.config
View
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <!--
+ The .NET 2.0 build of the console runner only
+ runs under .NET 2.0 or higher. The setting
+ useLegacyV2RuntimeActivationPolicy only applies
+ under .NET 4.0 and permits use of mixed mode
+ assemblies, which would otherwise not load
+ correctly.
+ -->
+ <startup useLegacyV2RuntimeActivationPolicy="true">
+ <!-- Comment out the next line to force use of .NET 4.0 -->
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v4.0.30319" />
+ </startup>
+
+ <runtime>
+ <!-- Ensure that test exceptions don't crash NUnit -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
+ <loadFromRemoteSources enabled="true" />
+
+ <!-- Look for addins in the addins directory for now -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="lib;addins"/>
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
BIN  packages/NUnit.Runners.2.6.1/tools/nunit-editor.exe
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/nunit-x86.exe
View
Binary file not shown
30 packages/NUnit.Runners.2.6.1/tools/nunit-x86.exe.config
View
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <!--
+ The GUI only runs under .NET 2.0 or higher. The
+ useLegacyV2RuntimeActivationPolicy setting only
+ applies under .NET 4.0 and permits use of mixed
+ mode assemblies, which would otherwise not load
+ correctly.
+ -->
+ <startup useLegacyV2RuntimeActivationPolicy="true">
+ <!-- Comment out the next line to force use of .NET 4.0 -->
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v4.0.30319" />
+ </startup>
+
+ <runtime>
+ <!-- Ensure that test exceptions don't crash NUnit -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
+ <loadFromRemoteSources enabled="true" />
+
+ <!-- Look for addins in the addins directory for now -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="lib;addins" />
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
BIN  packages/NUnit.Runners.2.6.1/tools/nunit.exe
View
Binary file not shown
30 packages/NUnit.Runners.2.6.1/tools/nunit.exe.config
View
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <!--
+ The GUI only runs under .NET 2.0 or higher. The
+ useLegacyV2RuntimeActivationPolicy setting only
+ applies under .NET 4.0 and permits use of mixed
+ mode assemblies, which would otherwise not load
+ correctly.
+ -->
+ <startup useLegacyV2RuntimeActivationPolicy="true">
+ <!-- Comment out the next line to force use of .NET 4.0 -->
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v4.0.30319" />
+ </startup>
+
+ <runtime>
+ <!-- Ensure that test exceptions don't crash NUnit -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
+ <loadFromRemoteSources enabled="true" />
+
+ <!-- Look for addins in the addins directory for now -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="lib;addins" />
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
BIN  packages/NUnit.Runners.2.6.1/tools/nunit.framework.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/pnunit-agent.exe
View
Binary file not shown
77 packages/NUnit.Runners.2.6.1/tools/pnunit-agent.exe.config
View
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+
+ <!-- Set the level for tracing NUnit itself -->
+ <!-- 0=Off 1=Error 2=Warning 3=Info 4=Debug -->
+ <system.diagnostics>
+ <switches>
+ <add name="NTrace" value="0" />
+ </switches>
+ </system.diagnostics>
+
+ <runtime>
+ <!-- We need this so test exceptions don't crash NUnit -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+
+ <!-- Look for addins in the addins directory for now -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="framework;lib;addins"/>
+ </assemblyBinding>
+
+ <!--
+ The following <assemblyBinding> section allows running nunit under
+ .NET 1.0 by redirecting assemblies. The appliesTo attribute
+ causes the section to be ignored except under .NET 1.0
+ on a machine with only the .NET version 1.0 runtime installed.
+ If application and its tests were built for .NET 1.1 you will
+ also need to redirect system assemblies in the test config file,
+ which controls loading of the tests.
+ -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
+ appliesTo="v1.0.3705">
+
+ <dependentAssembly>
+ <assemblyIdentity name="System"
+ publicKeyToken="b77a5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Data"
+ publicKeyToken="b77a5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Drawing"
+ publicKeyToken="b03f5f7f11d50a3a"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Windows.Forms"
+ publicKeyToken="b77a5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Xml"
+ publicKeyToken="b77a5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
BIN  packages/NUnit.Runners.2.6.1/tools/pnunit-launcher.exe
View
Binary file not shown
77 packages/NUnit.Runners.2.6.1/tools/pnunit-launcher.exe.config
View
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+
+ <!-- Set the level for tracing NUnit itself -->
+ <!-- 0=Off 1=Error 2=Warning 3=Info 4=Debug -->
+ <system.diagnostics>
+ <switches>
+ <add name="NTrace" value="0" />
+ </switches>
+ </system.diagnostics>
+
+ <runtime>
+ <!-- We need this so test exceptions don't crash NUnit -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+
+ <!-- Look for addins in the addins directory for now -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="framework;lib;addins"/>
+ </assemblyBinding>
+
+ <!--
+ The following <assemblyBinding> section allows running nunit under
+ .NET 1.0 by redirecting assemblies. The appliesTo attribute
+ causes the section to be ignored except under .NET 1.0
+ on a machine with only the .NET version 1.0 runtime installed.
+ If application and its tests were built for .NET 1.1 you will
+ also need to redirect system assemblies in the test config file,
+ which controls loading of the tests.
+ -->
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
+ appliesTo="v1.0.3705">
+
+ <dependentAssembly>
+ <assemblyIdentity name="System"
+ publicKeyToken="b77a5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Data"
+ publicKeyToken="b77a5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Drawing"
+ publicKeyToken="b03f5f7f11d50a3a"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Windows.Forms"
+ publicKeyToken="b77a5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Xml"
+ publicKeyToken="b77a5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
BIN  packages/NUnit.Runners.2.6.1/tools/pnunit.framework.dll
View
Binary file not shown
BIN  packages/NUnit.Runners.2.6.1/tools/pnunit.tests.dll
View
Binary file not shown
3  packages/NUnit.Runners.2.6.1/tools/runpnunit.bat
View
@@ -0,0 +1,3 @@
+start pnunit-agent 8080 .
+start pnunit-agent 8081 .
+pnunit-launcher test.conf
82 packages/NUnit.Runners.2.6.1/tools/test.conf
View
@@ -0,0 +1,82 @@
+<TestGroup>
+
+ <Variables>
+ <Variable name="$agent_host" value="localhost" />
+ </Variables>
+
+ <ParallelTests>
+
+ <!-- This is really just one test -->
+ <ParallelTest>
+ <Name>Testing</Name>
+ <Tests>
+ <TestConf>
+ <Name>Testing</Name>
+ <Assembly>pnunit.tests.dll</Assembly>
+ <TestToRun>TestLibraries.Testing.EqualTo19</TestToRun>
+ <Machine>$agent_host:8080</Machine>
+ </TestConf>
+ </Tests>
+ </ParallelTest>
+
+ <!-- Parallel Test on a single agent - no barriers -->
+ <ParallelTest>
+ <Name>Parallel_Tests</Name>
+ <Tests>
+ <TestConf>
+ <Name>ParallelTest_A_Test</Name>
+ <Assembly>pnunit.tests.dll</Assembly>
+ <TestToRun>TestLibraries.ParallelExample.ParallelTest_A</TestToRun>
+ <Machine>$agent_host:8080</Machine>
+ <TestParams>
+ <!-- sleep time in seconds -->
+ <string>2</string>
+ </TestParams>
+ </TestConf>
+ <TestConf>
+ <Name>ParallelTest_B_Test</Name>
+ <Assembly>pnunit.tests.dll</Assembly>
+ <TestToRun>TestLibraries.ParallelExample.ParallelTest_B</TestToRun>
+ <Machine>$agent_host:8080</Machine>
+ <TestParams>
+ <string>1</string>
+ <!-- sleep time in seconds -->
+ </TestParams>
+ </TestConf>
+ </Tests>
+ </ParallelTest>
+
+ <!-- Parallel Test using two agents - with wait barriers -->
+ <ParallelTest>
+ <Name>Parallel_Barriers</Name>
+ <Tests>
+ <TestConf>
+ <Name>Parallel_Barriers_TestA</Name>
+ <Assembly>pnunit.tests.dll</Assembly>
+ <TestToRun>TestLibraries.ParallelExampleWithBarriers.ParallelTestWithBarriersA</TestToRun>
+ <Machine>$agent_host:8080</Machine>
+ <TestParams>
+ </TestParams>
+ <WaitBarriers>
+ <string>START_BARRIER</string>
+ <string>WAIT_BARRIER</string>
+ </WaitBarriers>
+ </TestConf>
+ <TestConf>
+ <Name>Parallel_Barriers_TestB</Name>
+ <Assembly>pnunit.tests.dll</Assembly>
+ <TestToRun>TestLibraries.ParallelExampleWithBarriers.ParallelTestWithBarriersB</TestToRun>
+ <Machine>$agent_host:8081</Machine>
+ <TestParams>
+ </TestParams>
+ <WaitBarriers>
+ <string>START_BARRIER</string>
+ <string>WAIT_BARRIER</string>
+ </WaitBarriers>
+ </TestConf>
+ </Tests>
+ </ParallelTest>
+
+ </ParallelTests>
+
+</TestGroup>
4 packages/repositories.config
View
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<repositories>
+ <repository path="..\Mvc.Mailer.Test\packages.config" />
+</repositories>
Please sign in to comment.
Something went wrong with that request. Please try again.