Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ported to .Net Core #19

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
350 changes: 258 additions & 92 deletions .gitignore

Large diffs are not rendered by default.

860 changes: 0 additions & 860 deletions src/Should.Core/Assertions/Assert.cs.orig

This file was deleted.

105 changes: 4 additions & 101 deletions src/Should.Core/Should.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,102 +1,5 @@
<?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>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{984764C1-D102-43AD-8DE9-0AA3B7E5D431}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Should.Core</RootNamespace>
<AssemblyName>Should.Core</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
</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.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\CommonAssemblyInfo.cs">
<Link>Properties\CommonAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Assertions\Assert.cs" />
<Compile Include="Assertions\AssertComparer.cs" />
<Compile Include="Assertions\AssertEqualityComparer.cs" />
<Compile Include="Assertions\Assertions.cs" />
<Compile Include="Assertions\EnumerableEqualityComparer.cs" />
<Compile Include="Assertions\Record.cs" />
<Compile Include="DatePrecision.cs" />
<Compile Include="Exceptions\AssertActualExpectedException.cs" />
<Compile Include="Exceptions\AssertException.cs" />
<Compile Include="Exceptions\ComparisonException.cs" />
<Compile Include="Exceptions\ContainsException.cs" />
<Compile Include="Exceptions\DoesNotContainException.cs" />
<Compile Include="Exceptions\DoesNotThrowException.cs" />
<Compile Include="Exceptions\EmptyException.cs" />
<Compile Include="Exceptions\EqualException.cs" />
<Compile Include="Exceptions\FalseException.cs" />
<Compile Include="Exceptions\GreaterThanException.cs" />
<Compile Include="Exceptions\GreaterThanOrEqualException.cs" />
<Compile Include="Exceptions\InRangeException.cs" />
<Compile Include="Exceptions\IsAssignableFromException.cs" />
<Compile Include="Exceptions\IsNotTypeException.cs" />
<Compile Include="Exceptions\IsTypeException.cs" />
<Compile Include="Exceptions\LessThanException.cs" />
<Compile Include="Exceptions\LessThanOrEqualException.cs" />
<Compile Include="Exceptions\NotEmptyException.cs" />
<Compile Include="Exceptions\NotEqualException.cs" />
<Compile Include="Exceptions\NotInRangeException.cs" />
<Compile Include="Exceptions\NotNullException.cs" />
<Compile Include="Exceptions\NotSameException.cs" />
<Compile Include="Exceptions\NullException.cs" />
<Compile Include="Exceptions\ParameterCountMismatchException.cs" />
<Compile Include="Exceptions\SameException.cs" />
<Compile Include="Exceptions\SingleException.cs" />
<Compile Include="Exceptions\StartsWithException.cs" />
<Compile Include="Exceptions\ThrowsException.cs" />
<Compile Include="Exceptions\TimeoutException.cs" />
<Compile Include="Exceptions\TraceAssertException.cs" />
<Compile Include="Exceptions\TrueException.cs" />
</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.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
</Project>
97 changes: 0 additions & 97 deletions src/Should.Core/Should.Core.csproj.orig

This file was deleted.

2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeBoolSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;

namespace Should.Fluent.UnitTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeDateTimeSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;

namespace Should.Fluent.UnitTests
{
Expand Down
45 changes: 0 additions & 45 deletions src/Should.Fluent.UnitTests/BeDateTimeSpecs.cs.orig

This file was deleted.

2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeEnumerableSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;

namespace Should.Fluent.UnitTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeGuidSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;

namespace Should.Fluent.UnitTests
{
Expand Down
36 changes: 0 additions & 36 deletions src/Should.Fluent.UnitTests/BeGuidSpecs.cs.orig

This file was deleted.

2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeMethodCallExpressionSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq.Expressions;
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;
using IT = Moq.It;

namespace Should.Fluent.UnitTests
Expand Down
2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeNullableBoolSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;

namespace Should.Fluent.UnitTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeNullableDateTimeSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;

namespace Should.Fluent.UnitTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;

namespace Should.Fluent.UnitTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/Should.Fluent.UnitTests/BeStringSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Machine.Specifications;
using Should.Fluent.Model;
using It=Machine.Specifications.It;
using It = Machine.Specifications.It;

namespace Should.Fluent.UnitTests
{
Expand Down
8 changes: 4 additions & 4 deletions src/Should.Fluent.UnitTests/Behaviors.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Machine.Specifications;
using NUnit.Framework;
using Should.Core.Exceptions;
using Xunit;

namespace Should.Fluent.UnitTests
{
Expand All @@ -12,15 +12,15 @@ public class Throws<T> where T : AssertException

It should_throw_assert_exception_of_expected_type = () =>
{
Assert.IsNotNull(exception);
Assert.IsInstanceOfType(typeof(T), exception);
Assert.NotNull(exception);
Assert.IsType<T>(exception);
};
}

[Behaviors]
public class DoesNotThrow
{
protected static Exception exception;
It should_throw_not_equal_exception = () => Assert.IsNull(exception);
It should_throw_not_equal_exception = () => Assert.Null(exception);
}
}
Loading