Skip to content
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
19 changes: 14 additions & 5 deletions FactoryGirl.NET.Specs/FactoryGirl.NET.Specs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,17 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Machine.Specifications">
<HintPath>..\packages\Machine.Specifications.0.5.5.0\lib\net20\Machine.Specifications.dll</HintPath>
<Reference Include="Machine.Specifications, Version=0.9.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Machine.Specifications.0.9.3\lib\net40\Machine.Specifications.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Machine.Specifications.Clr4, Version=0.9.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Machine.Specifications.0.9.3\lib\net40\Machine.Specifications.Clr4.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Shouldly, Version=2.7.0.0, Culture=neutral, PublicKeyToken=6042cbcb05cbc941, processorArchitecture=MSIL">
<HintPath>..\packages\Shouldly.2.7.0\lib\net40\Shouldly.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand All @@ -44,15 +53,15 @@
<Compile Include="FactoryGirlSpecs.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FactoryGirl.NET\FactoryGirl.NET.csproj">
<Project>{42C54733-C4A4-459F-95DB-D2C44E98F1B8}</Project>
<Name>FactoryGirl.NET</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
5 changes: 3 additions & 2 deletions FactoryGirl.NET.Specs/FactoryGirlSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Machine.Specifications;
using Shouldly;

namespace FactoryGirl.NET.Specs {
[Subject(typeof(FactoryGirl))]
Expand Down Expand Up @@ -28,15 +29,15 @@ public class When_we_define_the_same_factory_again {
public class When_we_build_a_default_object {
Because of = () => builtObject = FactoryGirl.Build<Dummy>();
It should_build_the_object = () => builtObject.ShouldNotBeNull();
It should_assign_the_default_value_for_the_property = () => builtObject.Value.ShouldEqual(Dummy.DefaultValue);
It should_assign_the_default_value_for_the_property = () => builtObject.Value.ShouldBe(Dummy.DefaultValue);

static Dummy builtObject;
}

[Subject(typeof(FactoryGirl))]
public class When_we_build_a_customized_object {
Because of = () => builtObject = FactoryGirl.Build<Dummy>(x => x.Value = 42);
It should_update_the_specified_value = () => builtObject.Value.ShouldEqual(42);
It should_update_the_specified_value = () => builtObject.Value.ShouldBe(42);

static Dummy builtObject;
}
Expand Down
3 changes: 2 additions & 1 deletion FactoryGirl.NET.Specs/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Machine.Specifications" version="0.5.5.0" />
<package id="Machine.Specifications" version="0.9.3" targetFramework="net40-client" />
<package id="Shouldly" version="2.7.0" targetFramework="net40-client" />
</packages>
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
504 changes: 0 additions & 504 deletions packages/Machine.Specifications.0.5.5.0/tools/CommandLine.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading