Skip to content

Commit

Permalink
Tidy up unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Aug 13, 2021
1 parent 0904e91 commit 839f800
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/SpeechUnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,7 @@ public void TestDisableIPA()
{
// Test removal of <phoneme> tags (and only phenome tags) when the user has indicated that they would like to disable phonetic speech
var line = @"<break time=""100ms""/><phoneme alphabet=""ipa"" ph=""ʃɪnˈrɑːrtə"">Shinrarta</phoneme> <phoneme alphabet='ipa' ph='ˈdezɦrə'>Dezhra</phoneme> & Co's shop";

var service = new PrivateType(typeof(SpeechService));
var result = service.InvokeStatic("DisableIPA", line)?.ToString();

var result = SpeechFormatter.DisableIPA(line);
Assert.AreEqual(@"<break time=""100ms""/>Shinrarta Dezhra & Co's shop", result);
}
}
Expand Down

0 comments on commit 839f800

Please sign in to comment.