public void TimingTest() { Say fast = (Say)ChatParser.ParseText("SAY Thank you { speed=fast}")[0].commands[0]; Say defa = (Say)ChatParser.ParseText("SAY Thank you")[0].commands[0]; Say slow = (Say)ChatParser.ParseText("SAY Thank you{speed=slow }")[0].commands[0]; Assert.That(defa.ComputeDuration(), Is.EqualTo(fast.ComputeDuration() * 2).Within(1)); Assert.That(slow.ComputeDuration(), Is.EqualTo(defa.ComputeDuration() * 2).Within(1)); Say longer = (Say)ChatParser.ParseText("SAY Thank you very much")[0].commands[0]; Assert.That(longer.ComputeDuration(), Is.GreaterThan(defa.ComputeDuration())); Assert.That(fast.text, Is.EqualTo(defa.text)); Assert.That(slow.text, Is.EqualTo(defa.text)); }