public void Arrays() { //arrange C7NutShell.C2_BasicLanguage.Array.SpeechSound SpeechSound = new C7NutShell.C2_BasicLanguage.Array.SpeechSound(); char[] vowles = SpeechSound.Vowels; //act //assert Assert.AreEqual('e', vowles[1]); }
public void ArraysIterate() { //arrange C7NutShell.C2_BasicLanguage.Array.SpeechSound SpeechSound = new C7NutShell.C2_BasicLanguage.Array.SpeechSound(); char[] vowles = SpeechSound.Vowels; string vowlesConcatinated = ""; //act for (int i = 0; i < vowles.Length; i++) { vowlesConcatinated += vowles[i]; } //assert Assert.AreEqual("aeiou", vowlesConcatinated); }