testthat::test_that(desc = "Create SSML properly with given parameters", {
testthat::expect_equal(
mscstts::ms_create_ssml("created with default voice"),
"created with default voice")
testthat::expect_error(
mscstts::ms_create_ssml("this is an error", voice = "invalid voice name"))
testthat::expect_equal(
mscstts::ms_create_ssml("created with given voice", voice = "Microsoft Server Speech Text to Speech Voice (zh-CN, Yaoyao)"),
"created with given voice")
testthat::expect_equal(
mscstts::ms_create_ssml("created with given voice in short name", voice = "vi-VN-An"),
"created with given voice in short name")
})