public void GetWordFromText_Throws(string input, int pos) { //given var chall = new WordFromTextChallenge(); //when //then Assert.Throws <Exception>(() => chall.GetWordFromText(input, pos)); }
public void GetWordFromText_ReturnsWordFromPos(string input, int pos, string expected) { //given var chall = new WordFromTextChallenge(); //when var result = chall.GetWordFromText(input, pos); //then Assert.Equal(expected, result); }