Skip to content

Commit

Permalink
Drop specs that are not longer relevant.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel committed Jan 22, 2024
1 parent 5e0b571 commit c2aef9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 10 additions & 0 deletions specs/Qowaiv.Specs/Percentage_specs.cs
Expand Up @@ -169,6 +169,16 @@ public void with_TryParse_returns_SVO()
}
}

public class Can_not_be_parsed
{
[TestCase(NumberStyles.HexNumber)]
[TestCase(NumberStyles.AllowExponent)]
public void using_a_number_style_other_then_Number(NumberStyles style)
=> style.Invoking(s => Percentage.TryParse("4.5%", s, CultureInfo.InvariantCulture, out _))
.Should().Throw<ArgumentOutOfRangeException>()
.WithMessage("The number style '*' is not supported.*");
}

public class Can_be_created_with_percentage_extension
{
[Test]
Expand Down
8 changes: 0 additions & 8 deletions specs/Qowaiv.Specs/Svo_numeric_contract_specs.cs
Expand Up @@ -27,7 +27,6 @@ public void Abs(Type svo)

[TestCase(typeof(Amount))]
[TestCase(typeof(Money))]
[TestCase(typeof(Percentage))]
[TestCase(typeof(StreamSize))]
public void Plus(Type svo)
{
Expand Down Expand Up @@ -55,7 +54,6 @@ public void Plus(Type svo)

[TestCase(typeof(Amount))]
[TestCase(typeof(Money))]
[TestCase(typeof(Percentage))]
[TestCase(typeof(StreamSize))]
public void Negate(Type svo)
{
Expand Down Expand Up @@ -83,7 +81,6 @@ public void Negate(Type svo)

[TestCase(typeof(Amount))]
[TestCase(typeof(Money))]
[TestCase(typeof(Percentage))]
[TestCase(typeof(StreamSize))]
public void Increment(Type svo)
{
Expand Down Expand Up @@ -111,7 +108,6 @@ public void Increment(Type svo)

[TestCase(typeof(Amount))]
[TestCase(typeof(Money))]
[TestCase(typeof(Percentage))]
[TestCase(typeof(StreamSize))]
public void Decrement(Type svo)
{
Expand Down Expand Up @@ -139,7 +135,6 @@ public void Decrement(Type svo)

[TestCase(typeof(Amount), typeof(Amount), typeof(Percentage))]
[TestCase(typeof(Money), typeof(Money), typeof(Percentage))]
[TestCase(typeof(Percentage), typeof(Percentage))]
[TestCase(typeof(StreamSize), typeof(StreamSize), typeof(Percentage))]
public void Add(Type svo, params Type[] expected)
{
Expand Down Expand Up @@ -169,7 +164,6 @@ public void Add(Type svo, params Type[] expected)

[TestCase(typeof(Amount), typeof(Amount), typeof(Percentage))]
[TestCase(typeof(Money), typeof(Money), typeof(Percentage))]
[TestCase(typeof(Percentage), typeof(Percentage))]
[TestCase(typeof(StreamSize), typeof(StreamSize), typeof(Percentage))]
public void Subtract(Type svo, params Type[] expected)
{
Expand Down Expand Up @@ -199,7 +193,6 @@ public void Subtract(Type svo, params Type[] expected)

[TestCase(typeof(Amount), typeof(short), typeof(int), typeof(long), typeof(ushort), typeof(uint), typeof(ulong), typeof(float), typeof(double), typeof(decimal), typeof(Percentage))]
[TestCase(typeof(Money), typeof(short), typeof(int), typeof(long), typeof(ushort), typeof(uint), typeof(ulong), typeof(float), typeof(double), typeof(decimal), typeof(Percentage))]
[TestCase(typeof(Percentage), typeof(short), typeof(int), typeof(long), typeof(ushort), typeof(uint), typeof(ulong), typeof(float), typeof(double), typeof(decimal), typeof(Percentage))]
[TestCase(typeof(StreamSize), typeof(short), typeof(int), typeof(long), typeof(ushort), typeof(uint), typeof(ulong), typeof(float), typeof(double), typeof(decimal), typeof(Percentage))]
public void Multiply(Type svo, params Type[] expected)
{
Expand Down Expand Up @@ -229,7 +222,6 @@ public void Multiply(Type svo, params Type[] expected)

[TestCase(typeof(Amount), typeof(short), typeof(int), typeof(long), typeof(ushort), typeof(uint), typeof(ulong), typeof(float), typeof(double), typeof(decimal), typeof(Percentage))]
[TestCase(typeof(Money), typeof(short), typeof(int), typeof(long), typeof(ushort), typeof(uint), typeof(ulong), typeof(float), typeof(double), typeof(decimal), typeof(Percentage))]
[TestCase(typeof(Percentage), typeof(short), typeof(int), typeof(long), typeof(ushort), typeof(uint), typeof(ulong), typeof(float), typeof(double), typeof(decimal), typeof(Percentage))]
[TestCase(typeof(StreamSize), typeof(short), typeof(int), typeof(long), typeof(ushort), typeof(uint), typeof(ulong), typeof(float), typeof(double), typeof(decimal), typeof(Percentage))]
public void Divide(Type svo, params Type[] expected)
{
Expand Down

0 comments on commit c2aef9b

Please sign in to comment.