Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek-galezowski committed Nov 1, 2013
1 parent 42b57d7 commit a0d643c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions TddToolkit/Any.Inherited.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TddEbook.TddToolkit
{
public class AnyData
{
protected T Any<T>()
{
return TddEbook.TddToolkit.Any.Instance<T>();
}
}

}
9 changes: 9 additions & 0 deletions TddToolkit/Any.Numbers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,14 @@ public static byte ByteOtherThan(params byte[] others)
return ValueOtherThan(others);
}

public static decimal Decimal()
{
return ValueOf<decimal>();
}

public static decimal DecimalOtherThan(decimal other)
{
return ValueOtherThan(other);
}
}
}
1 change: 1 addition & 0 deletions TddToolkit/TddToolkit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
<Compile Include="Any.Private.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Any.Inherited.cs" />
<None Include="packages.config" />
<None Include="TddToolkit.snk" />
</ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions TddToolkitSpecification/AnySpecification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ public void ShouldAlwaysReturnTheDifferentValueFromProxiedTheSameMethodOnDiffere
XAssert.NotEqual(valueFromFirstInstance, valueFromSecondInstance);
}

[Test]
public void ShouldCreateNonNullUri()
{
Assert.NotNull(Any.Uri());
}

[Test]
public void ShouldGenerateFiniteEnumerables()
{
Expand Down

0 comments on commit a0d643c

Please sign in to comment.