示例#1
0
 public void GetPageType_ReturnsCorrectPageType()
 {
     Assert.Equal(PageType.BatchTicket, AttributeHelpers.GetPageType("BATCH_TICKET"));
     Assert.Equal(PageType.PersonalCheck, AttributeHelpers.GetPageType("PERSONAL_CHECK"));
     Assert.Equal(PageType.BusinessCheck, AttributeHelpers.GetPageType("BUSINESS_CHECK"));
     Assert.Equal(PageType.MoneyOrder, AttributeHelpers.GetPageType("MONEY_ORDER"));
     Assert.Equal(PageType.Stub, AttributeHelpers.GetPageType("STUB"));
     Assert.Equal(PageType.Page, AttributeHelpers.GetPageType("PAGE"));
     Assert.Equal(PageType.Envelope, AttributeHelpers.GetPageType("ENVELOPE"));
     Assert.Equal(PageType.CheckList, AttributeHelpers.GetPageType("CHECK_LIST"));
     Assert.Equal(PageType.Cash, AttributeHelpers.GetPageType("CASH"));
     Assert.Equal(PageType.CustomPage1, AttributeHelpers.GetPageType("CUSTOM_PAGE1"));
     Assert.Equal(PageType.CustomPage2, AttributeHelpers.GetPageType("CUSTOM_PAGE2"));
     Assert.Equal(PageType.CustomPage3, AttributeHelpers.GetPageType("CUSTOM_PAGE3"));
     Assert.Null(AttributeHelpers.GetPageType(""));
     Assert.Null(AttributeHelpers.GetPageType(null));
     Assert.Null(AttributeHelpers.GetPageType("SOME_RANDOM_STRING"));
 }