-
-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 Fixes #192: Fixed IndexOutOfRangeException when `Company.CompanyNam…
…e()` is used with `az` locale.
- Loading branch information
Showing
6 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Threading.Tasks; | ||
using FluentAssertions; | ||
using Xunit; | ||
|
||
namespace Bogus.Tests.GitHubIssues | ||
{ | ||
public class Issue192 : SeededTest | ||
{ | ||
|
||
[Fact] | ||
public void no_company_suffix_should_not_throw() | ||
{ | ||
var f = new Faker("az"); | ||
var s = f.Random.ArrayElement(f.Company.Suffixes()); | ||
s.Should().Be("Holdinqlər"); | ||
} | ||
|
||
[Fact] | ||
public void company_name_should_work_in_az() | ||
{ | ||
var f = new Faker("az"); | ||
|
||
f.Company.CompanyName(0).Should().Be("Əfəndiyeva Holdinqlər"); | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"company": { | ||
"suffix": [ | ||
"Qrup", | ||
"Holdinqlər" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters