Пример #1
0
 public void GetMicrStatus_ReturnsCorrectMicrStatus()
 {
     Assert.Equal(MicrStatus.Good, AttributeHelpers.GetMicrStatus("GOOD"));
     Assert.Equal(MicrStatus.Partial, AttributeHelpers.GetMicrStatus("PARTIAL"));
     Assert.Equal(MicrStatus.Bad, AttributeHelpers.GetMicrStatus("BAD"));
     Assert.Equal(MicrStatus.NoMicr, AttributeHelpers.GetMicrStatus("NO_MICR"));
     Assert.Equal(MicrStatus.Inactive, AttributeHelpers.GetMicrStatus("INACTIVE"));
     Assert.Equal(MicrStatus.Error, AttributeHelpers.GetMicrStatus("ERROR"));
     Assert.Null(AttributeHelpers.GetMicrStatus(""));
     Assert.Null(AttributeHelpers.GetMicrStatus(null));
     Assert.Null(AttributeHelpers.GetMicrStatus("SOME_RANDOM_STRING"));
 }