public void QueryExecutionThrowsException() { string messageExc = "Query executions not supported."; var ex = Assert.Throws <NotSupportedException>(() => MockSupRepository.ExecuteQuery("")); Assert.That(ex.Message, Is.EqualTo(messageExc)); }