module PigLatinTest open NUnit.Framework open PigLatin [] [] [] [] [] let ``Ay is added to words that start with vowels`` (word) = translate word [] [] [] [] let ``First letter and ay are moved to the end of words that start with consonants`` (word) = translate word [] [] let ``Ch is treated like a single consonant`` () = Assert.That(translate "chair", Is.EqualTo("airchay")) [] [] let ``Qu is treated like a single consonant`` () = Assert.That(translate "queen", Is.EqualTo("eenquay")) [] [] let ``Qu and a single preceding consonant are treated like a single consonant`` () = Assert.That(translate "square", Is.EqualTo("aresquay")) [] [] let ``Th is treated like a single consonant`` () = Assert.That(translate "therapy", Is.EqualTo("erapythay")) [] [] let ``Thr is treated like a single consonant`` () = Assert.That(translate "thrush", Is.EqualTo("ushthray")) [] [] let ``Sch is treated like a single consonant`` () = Assert.That(translate "school", Is.EqualTo("oolschay")) [] [] let ``Yt is treated like a single vowel`` () = Assert.That(translate "yttria", Is.EqualTo("yttriaay")) [] [] let ``Xr is treated like a single vowel`` () = Assert.That(translate "xray", Is.EqualTo("xrayay")) [] [] let ``Phrases are translated`` () = Assert.That(translate "quick fast run", Is.EqualTo("ickquay astfay unray"))