Skip to content

Commit

Permalink
fix: DbaseDecimalCountTests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgallik authored and lvermeulen committed Mar 25, 2022
1 parent 1f4d441 commit 494adbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void ToByteReturnsExpectedValue()
[Fact]
public void ToLengthReturnsExpectedValue()
{
var value = _fixture.Create<int>().AsDbaseDecimalCountValue();
var value = _fixture.Create<int>().AsDbaseFieldLengthValue();
var sut = new DbaseDecimalCount(value);

var result = sut.ToLength();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static int AsDbaseFieldNameLength(this int value)

public static int AsDbaseFieldLengthValue(this int value)
{
return new Random(value).Next(1, 255);
return new Random(value).Next(1, 254);
}

public static int AsDbaseFieldLengthValue(this int value, int maximum)
Expand Down Expand Up @@ -67,7 +67,7 @@ public static int AsDbaseRecordLengthValue(this int value)

public static int AsDbaseDecimalCountValue(this int value)
{
return new Random(value).Next(0, 255);
return new Random(value).Next(0, 254);
}

public static int AsDbaseDecimalCountValue(this int value, int maximum)
Expand Down

0 comments on commit 494adbe

Please sign in to comment.