From d40b30dd1ee12549cbf2ea9b4ed357bc0cac7aa6 Mon Sep 17 00:00:00 2001 From: kesac Date: Tue, 10 Oct 2023 22:23:25 -0600 Subject: [PATCH] Propagate v2.3 changes to a few unit tests --- Syllabore/Syllabore.Tests/SyllableProviderTests.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Syllabore/Syllabore.Tests/SyllableProviderTests.cs b/Syllabore/Syllabore.Tests/SyllableProviderTests.cs index b284613..8a7d36a 100644 --- a/Syllabore/Syllabore.Tests/SyllableProviderTests.cs +++ b/Syllabore/Syllabore.Tests/SyllableProviderTests.cs @@ -229,8 +229,7 @@ public void Provider_WithCustomVowelProbability_AffectsNameGenerationSuccess() var provider = new SyllableGenerator() .WithVowelSequences("aa") .WithProbability(x => x - .OfVowels(1.0) - .OfVowelIsSequence(0)); + .OfVowels(1.0, 0)); var generator = new NameGenerator().UsingSyllables(provider); @@ -247,8 +246,7 @@ public void Provider_WithCustomVowelProbability_AffectsNameGenerationSuccess() // Defining at least one vowel sequence, set to 100% probability // without any possibility of vowels starting name shoudl work provider.WithProbability(x => x - .OfVowels(1.0) - .OfVowelIsSequence(1.0)); + .OfVowels(1.0, 1.0)); for (int i = 0; i < 1000; i++) { @@ -282,7 +280,7 @@ public void Provider_WithCustomComponents_AllComponentsAppearInProviderOutput() .WithTrailingConsonants("d") .WithTrailingConsonantSequences("ff") .WithProbability(x => x - .OfVowelIsSequence(0.50) + .OfVowels(1, 0.50) .OfLeadingConsonants(0.50) .OfTrailingConsonants(0.50) .OfLeadingVowelsInStartingSyllable(0.25));