示例#1
0
 public void GetItemStatus_ReturnsCorrectItemStatus()
 {
     Assert.Equal(ItemStatus.Valid, AttributeHelpers.GetItemStatus("VALID"));
     Assert.Equal(ItemStatus.Void, AttributeHelpers.GetItemStatus("VOID"));
     Assert.Equal(ItemStatus.VoidMarked, AttributeHelpers.GetItemStatus("VOID MARKED"));
     Assert.Null(AttributeHelpers.GetItemStatus(""));
     Assert.Null(AttributeHelpers.GetItemStatus(null));
     Assert.Null(AttributeHelpers.GetItemStatus("SOME_RANDOM_STRING"));
 }