Check matches (сравнение текста в виджете и строковой переменной).
onView(withId(R.id.result)) .check(matches(withText(R.string.empty_operands)));