public void GetRandomIngredientsPrefix_ReturnExpectedStringAndNotNullOrEmpty_Test() { string result = MiscService.GetRandomIngredientsPrefix(); bool equalsExpectedString = false; foreach (var tagline in BotConstants.OtherConstants.Prefixes) { equalsExpectedString |= result.Equals(string.Format("{0} ", tagline), StringComparison.CurrentCultureIgnoreCase); } Assert.NotNull(result); Assert.True(equalsExpectedString); }