Exemplo n.º 1
0
        public void ShouldSetThePauseStrength(PauseStrength strength, string expected)
        {
            string speech = new Speech()
                            .Say("There will be pause here")
                            .Pause()
                            .WithStrength(strength)
                            .Say("then the speech continues.")
                            .Build();

            speech.Should().Be($"<speak>There will be pause here <break strength=\"{expected}\" /> then the speech continues.</speak>");
        }
Exemplo n.º 2
0
 public IPause WithStrength(PauseStrength strength)
 {
     _strength = strength;
     return(this);
 }