public void TestPathingString3()
{
string pathingString = @"There [are;might be;could be] [4;5;] lights;It's dark in here;";
List<string> pathingOptions = new List<string>() {
"There are 4 lights"
, "There are 5 lights"
, "There are lights"
,"There might be 4 lights"
, "There might be 5 lights"
, "There might be lights"
,"There could be 4 lights"
, "There could be 5 lights"
, "There could be lights"
, "It's dark in here"
, ""
};
HashSet<string> pathingResults = new HashSet<string>();
for (int i = 0; i < 1000; i++)
{
string pathedString = VoiceAttackPlugin.SpeechFromScript(pathingString);
pathingResults.Add(pathedString);
}
Assert.IsTrue(pathingResults.SetEquals(new HashSet<string>(pathingOptions)));
}