Exemplo n.º 1
0
 public void GetJobType_ReturnsCorrectJobType()
 {
     Assert.Equal(JobType.Single, AttributeHelpers.GetJobType("SINGLE"));
     Assert.Equal(JobType.Multi, AttributeHelpers.GetJobType("MULTI"));
     Assert.Equal(JobType.StubOnly, AttributeHelpers.GetJobType("STUB_ONLY"));
     Assert.Equal(JobType.CheckOnly, AttributeHelpers.GetJobType("CHECK_ONLY"));
     Assert.Equal(JobType.MultiWithPage, AttributeHelpers.GetJobType("MULTI_WITH_PAGE"));
     Assert.Equal(JobType.PageOnly, AttributeHelpers.GetJobType("PAGE_ONLY"));
     Assert.Equal(JobType.Unstructured, AttributeHelpers.GetJobType("UNSTRUCTURED"));
     Assert.Equal(JobType.Structured, AttributeHelpers.GetJobType("STRUCTURED"));
     Assert.Null(AttributeHelpers.GetJobType(""));
     Assert.Null(AttributeHelpers.GetJobType(null));
     Assert.Null(AttributeHelpers.GetJobType("SOME_RANDOM_STRING"));
 }