The context:
Speaker to himself: そこに行って彼に会えば全部分かる事だ
At first I thought the 事だ meant "should" but on second thought realized that meaning of 事だ actually indicates that you're advising or warning someone, and not that an outcome is to be expected. So then what does it mean? Does it mean something like だろう in this context?