Skip to content

Commit

Permalink
Fix #18
Browse files Browse the repository at this point in the history
Update to build and publish on git.
  • Loading branch information
rnwood committed Nov 29, 2017
1 parent d26a2c4 commit a005974
Show file tree
Hide file tree
Showing 62 changed files with 116 additions and 186 deletions.
27 changes: 0 additions & 27 deletions ..svnbridge/.svnbridge

This file was deleted.

11 changes: 0 additions & 11 deletions Installer/..svnbridge/.svnbridge

This file was deleted.

1 change: 0 additions & 1 deletion Installer/Bitmaps/..svnbridge/bannrbmp.bmp

This file was deleted.

6 changes: 3 additions & 3 deletions Installer/Installer.wixproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
Expand All @@ -7,8 +7,8 @@
<SchemaVersion>2.0</SchemaVersion>
<OutputName>setup</OutputName>
<OutputType>Package</OutputType>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.5\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.5\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
Expand Down
4 changes: 2 additions & 2 deletions Installer/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="smtp4dev 2.0.8" Language="1033" Version="2.0.9" Manufacturer="Robert Wood" UpgradeCode="542EEA02-7932-465A-B51C-79B20B6E26AF">
<Product Id="*" Name="smtp4dev 2.0.10" Language="1033" Version="2.0.10" Manufacturer="Robert Wood" UpgradeCode="542EEA02-7932-465A-B51C-79B20B6E26AF">

<Package InstallerVersion="200" Compressed="yes" />

<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

<Upgrade Id="542EEA02-7932-465A-B51C-79B20B6E26AF">
<UpgradeVersion Minimum="1.0.0" Maximum="2.0.8" IncludeMaximum="yes" Property="THEUPGRADEVERSION"/>
<UpgradeVersion Minimum="1.0.0" Maximum="2.0.9" IncludeMaximum="yes" Property="THEUPGRADEVERSION"/>
</Upgrade>

<WixVariable Id="WixUILicenseRtf" Value="$(var.SolutionDir)license.rtf" />
Expand Down
8 changes: 0 additions & 8 deletions Rnwood.AutoUpdate/..svnbridge/.svnbridge

This file was deleted.

4 changes: 2 additions & 2 deletions Rnwood.AutoUpdate/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Rnwood.AutoUpdate/Rnwood.AutoUpdate.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -12,6 +12,11 @@
<AssemblyName>Rnwood.AutoUpdate</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
3 changes: 0 additions & 3 deletions Rnwood.Smtp4dev/..svnbridge/.svnbridge

This file was deleted.

16 changes: 14 additions & 2 deletions Rnwood.Smtp4dev/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Rnwood.Smtp4dev/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Rnwood.Smtp4dev/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<Value Profile="(Default)" />
</Setting>
<Setting Name="UpdateURL" Type="(Web Service URL)" Scope="Application">
<Value Profile="(Default)">https://smtp4dev.svn.codeplex.com/svn/trunk/releases.xml</Value>
<Value Profile="(Default)">https://www.rnwood.co.uk/smtp4dev-releases.xml</Value>
</Setting>
<Setting Name="EnableUpdateCheck" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
Expand Down
1 change: 0 additions & 1 deletion Rnwood.Smtp4dev/Resources/..svnbridge/Icon1.ico

This file was deleted.

1 change: 0 additions & 1 deletion Rnwood.Smtp4dev/Resources/..svnbridge/Icon2.ico

This file was deleted.

1 change: 0 additions & 1 deletion Rnwood.Smtp4dev/Resources/..svnbridge/localhost.cer

This file was deleted.

1 change: 0 additions & 1 deletion Rnwood.Smtp4dev/Resources/..svnbridge/root.cer

This file was deleted.

7 changes: 6 additions & 1 deletion Rnwood.Smtp4dev/Rnwood.Smtp4dev.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -13,6 +13,11 @@
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ApplicationIcon>Resources\Icon1.ico</ApplicationIcon>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion Rnwood.Smtp4dev/Rnwood.Smtp4dev.csproj.user
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<StartArguments>
</StartArguments>
Expand Down
2 changes: 1 addition & 1 deletion Rnwood.Smtp4dev/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<applicationSettings>
<Rnwood.Smtp4dev.Properties.Settings>
<setting name="UpdateURL" serializeAs="String">
<value>https://smtp4dev.svn.codeplex.com/svn/trunk/releases.xml</value>
<value>https://www.rnwood.co.uk/smtp4dev-releases.xml</value>
</setting>
<setting name="UpdateCheckIncludePrerelease" serializeAs="String">
<value>True</value>
Expand Down
3 changes: 0 additions & 3 deletions Rnwood.SmtpServer.Tests/..svnbridge/.svnbridge

This file was deleted.

26 changes: 22 additions & 4 deletions Rnwood.SmtpServer.Tests/Rnwood.SmtpServer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -11,8 +11,13 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Rnwood.SmtpServer.Tests</RootNamespace>
<AssemblyName>Rnwood.SmtpServer.Tests</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -32,8 +37,18 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Gallio, Version=3.1.0.0, Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e, processorArchitecture=MSIL" />
<Reference Include="MbUnit, Version=3.1.0.0, Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e, processorArchitecture=MSIL" />
<Reference Include="Gallio, Version=3.4.0.0, Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e, processorArchitecture=MSIL">
<HintPath>..\packages\mbunit.3.4.14.0\lib\net40\Gallio.dll</HintPath>
</Reference>
<Reference Include="Gallio40, Version=3.4.0.0, Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e, processorArchitecture=MSIL">
<HintPath>..\packages\mbunit.3.4.14.0\lib\net40\Gallio40.dll</HintPath>
</Reference>
<Reference Include="MbUnit, Version=3.4.0.0, Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e, processorArchitecture=MSIL">
<HintPath>..\packages\mbunit.3.4.14.0\lib\net40\MbUnit.dll</HintPath>
</Reference>
<Reference Include="MbUnit40, Version=3.4.0.0, Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e, processorArchitecture=MSIL">
<HintPath>..\packages\mbunit.3.4.14.0\lib\net40\MbUnit40.dll</HintPath>
</Reference>
<Reference Include="Moq, Version=3.1.416.3, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\lib\Moq\Moq.dll</HintPath>
Expand Down Expand Up @@ -72,6 +87,9 @@
<Name>Rnwood.SmtpServer</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.
Expand Down
12 changes: 12 additions & 0 deletions Rnwood.SmtpServer.Tests/Verbs/HeloVerbTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ public void SayHelo()
mocks.Session.VerifySet(s => s.ClientName, "foo.bar");
}

[Test]
public void SayHelo_NoClientName()
{
Mocks mocks = new Mocks();

HeloVerb verb = new HeloVerb();
verb.Process(mocks.Connection.Object, new SmtpCommand("HELO"));

mocks.VerifyWriteResponse(StandardSmtpResponseCode.OK);
mocks.Session.VerifySet(s => s.ClientName, (string) null);
}

[Test]
public void SayHeloTwice_ReturnsError()
{
Expand Down
8 changes: 0 additions & 8 deletions Rnwood.SmtpServer/..svnbridge/.svnbridge

This file was deleted.

2 changes: 1 addition & 1 deletion Rnwood.SmtpServer/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public void Start()
}
}
}
catch (IOException ioException)
catch (Exception ioException)
{
Session.SessionError = ioException.Message;
}
Expand Down
8 changes: 0 additions & 8 deletions Rnwood.SmtpServer/Examples/..svnbridge/.svnbridge

This file was deleted.

This file was deleted.

Loading

0 comments on commit a005974

Please sign in to comment.