Skip to content

Commit

Permalink
Test corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
gunn3r71 committed Jan 1, 2022
1 parent 34fd5be commit ba9c5a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Flunt.Tests/StringValidationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,20 +403,20 @@ public void AreNotEqualsLen()

[TestCategory("String Validation")]
[TestMethod("requires string len to be in a range")]
public void IsBeetween()
public void IsBetween()
{
var contract = new Contract<SampleEntity>()
.Requires()

.IsBeetween(_entity.StringEmpty, 5, 10, "String", "Custom error message")
.IsBetween(_entity.StringEmpty, 5, 10, "String", "Custom error message")

.IsBeetween(_entity.StringFiveCharsLong, 6, 10, "String", "Custom error message")
.IsBetween(_entity.StringFiveCharsLong, 6, 10, "String", "Custom error message")

.IsBeetween(_entity.StringNull, 5, 10, "String", "Custom error message")
.IsBetween(_entity.StringNull, 5, 10, "String", "Custom error message")

.IsBeetween(_entity.StringWhiteSpace, 5, 10, "String", "Custom error message")
.IsBetween(_entity.StringWhiteSpace, 5, 10, "String", "Custom error message")

.IsBeetween(_entity.StringNotEmpty, 3, 10, "String", "Custom error message");
.IsBetween(_entity.StringNotEmpty, 3, 10, "String", "Custom error message");

Assert.AreEqual(false, contract.IsValid);
Assert.AreEqual(contract.Notifications.Count, 2);
Expand Down
2 changes: 1 addition & 1 deletion Flunt/Validations/StringValidationContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public Contract<T> IsLowerOrEqualsThan(string val, int comparer, string key, str
/// <param name="key"></param>
/// <param name="message"></param>
/// <returns></returns>
public Contract<T> IsBeetween(string val, int min, int max, string key, string message)
public Contract<T> IsBetween(string val, int min, int max, string key, string message)
{
if (val == null)
return this;
Expand Down

0 comments on commit ba9c5a6

Please sign in to comment.