Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

[REEF-1176] Add unit tests for ContextRuntime #846

Closed
wants to merge 1 commit into from

Conversation

afchung
Copy link
Contributor

@afchung afchung commented Feb 18, 2016

JIRA:
REEF-1176

@markusweimer
Copy link
Contributor

LGTM. Will test and merge.

@asfgit asfgit closed this in f4d40ca Feb 20, 2016
var testTask = contextRuntime.TaskRuntime.Value.Task as TestTask;
if (testTask == null)
{
throw new Exception();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we throw Exception in tests? If we need to fail the test, a respective Assert seems to be a proper way to do so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants