Skip to content

Commit

Permalink
Rename Times to TimesExactly to avoid ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Dec 30, 2022
1 parent 1ee4069 commit ac65f47
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Expand Up @@ -2,7 +2,7 @@ namespace FluentAssertions.Extensions;

public static class OccurrenceConstraintExtensions
{
public static OccurrenceConstraint Times(this int times)
public static OccurrenceConstraint TimesExactly(this int times)
{
return Exactly.Times(times);
}
Expand Down
Expand Up @@ -1478,7 +1478,7 @@ namespace FluentAssertions.Extensions
}
public static class OccurrenceConstraintExtensions
{
public static FluentAssertions.OccurrenceConstraint Times(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesExactly(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrLess(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrMore(this int times) { }
}
Expand Down
Expand Up @@ -1491,7 +1491,7 @@ namespace FluentAssertions.Extensions
}
public static class OccurrenceConstraintExtensions
{
public static FluentAssertions.OccurrenceConstraint Times(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesExactly(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrLess(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrMore(this int times) { }
}
Expand Down
Expand Up @@ -1478,7 +1478,7 @@ namespace FluentAssertions.Extensions
}
public static class OccurrenceConstraintExtensions
{
public static FluentAssertions.OccurrenceConstraint Times(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesExactly(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrLess(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrMore(this int times) { }
}
Expand Down
Expand Up @@ -1478,7 +1478,7 @@ namespace FluentAssertions.Extensions
}
public static class OccurrenceConstraintExtensions
{
public static FluentAssertions.OccurrenceConstraint Times(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesExactly(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrLess(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrMore(this int times) { }
}
Expand Down
Expand Up @@ -1429,7 +1429,7 @@ namespace FluentAssertions.Extensions
}
public static class OccurrenceConstraintExtensions
{
public static FluentAssertions.OccurrenceConstraint Times(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesExactly(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrLess(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrMore(this int times) { }
}
Expand Down
Expand Up @@ -1478,7 +1478,7 @@ namespace FluentAssertions.Extensions
}
public static class OccurrenceConstraintExtensions
{
public static FluentAssertions.OccurrenceConstraint Times(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesExactly(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrLess(this int times) { }
public static FluentAssertions.OccurrenceConstraint TimesOrMore(this int times) { }
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/FluentAssertions.Specs/OccurrenceConstraintSpecs.cs
Expand Up @@ -34,7 +34,7 @@ public class OccurrenceConstraintSpecs
{ Exactly.Twice(), 2 },
{ Exactly.Thrice(), 3 },
{ Exactly.Times(4), 4 },
{ 4.Times(), 4 },
{ 4.TimesExactly(), 4 },
{ LessThan.Twice(), 1 },
{ LessThan.Thrice(), 2 },
{ LessThan.Times(4), 3 },
Expand Down Expand Up @@ -78,7 +78,7 @@ public void Occurrence_constraint_passes(OccurrenceConstraint constraint, int oc
{ Exactly.Thrice(), 4 },
{ Exactly.Times(4), 3 },
{ Exactly.Times(4), 5 },
{ 4.Times(), 1 },
{ 4.TimesExactly(), 1 },
{ LessThan.Twice(), 2 },
{ LessThan.Twice(), 3 },
{ LessThan.Thrice(), 3 },
Expand Down

0 comments on commit ac65f47

Please sign in to comment.