Skip to content

Optimize number helper #94

Optimize number helper

Optimize number helper #94

GitHub Actions / DotNET Tests succeeded Sep 20, 2024 in 0s

78 passed, 0 failed and 1 skipped

Tests passed successfully

✅ src/Portalum.Zvt.UnitTest/TestResults/runneradmin_fv-az1111-305_2024-09-20_12_37_13.trx

79 tests were completed in 25s with 78 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Portalum.Zvt.UnitTest.ApduHelperTest 8✅ 5ms
Portalum.Zvt.UnitTest.BitHelperTest 2✅ 365ms
Portalum.Zvt.UnitTest.BmpParserTest 4✅ 1ms
Portalum.Zvt.UnitTest.ChecksumTest 1✅ 256ms
Portalum.Zvt.UnitTest.IntermediateStatusInformationParserTest 4✅ 298ms
Portalum.Zvt.UnitTest.NumberHelperTest 12✅ 8ms
Portalum.Zvt.UnitTest.PrintLineTest 4✅ 157ms
Portalum.Zvt.UnitTest.PrintTextBlockTest 4✅ 4ms
Portalum.Zvt.UnitTest.ReceiveHandlerTest 3✅ 4ms
Portalum.Zvt.UnitTest.RegistrationConfigTest 4✅ 0ms
Portalum.Zvt.UnitTest.SerialTest 1⚪ 0ms
Portalum.Zvt.UnitTest.StatusInformationParserTest 8✅ 11ms
Portalum.Zvt.UnitTest.TlvParserTest 7✅ 4ms
Portalum.Zvt.UnitTest.ZvtClientTest 10✅ 10s
Portalum.Zvt.UnitTest.ZvtCommunicationTest 7✅ 2s

✅ Portalum.Zvt.UnitTest.ApduHelperTest

✅ GetApduInfo_CorruptData1_Successful
✅ GetApduInfo_CorruptData2_Successful
✅ GetApduInfo_CorruptData3_Successful
✅ GetApduInfo_CorruptLength_Successful
✅ GetApduInfo_DefaultLengthField_Successful
✅ GetApduInfo_ExtendedLengthField1_Successful
✅ GetApduInfo_ExtendedLengthField2_Successful
✅ GetApduInfo_ExtendedLengthFieldMaxLength_Successful

✅ Portalum.Zvt.UnitTest.BitHelperTest

✅ SetBit_BitIndexTooHigh_Failure
✅ SetBit_BitIndexTooLow_Failure

✅ Portalum.Zvt.UnitTest.BmpParserTest

✅ GetDataLengthLL_ValidData1_Successful
✅ GetDataLengthLL_ValidData2_Successful
✅ GetDataLengthLLL_ValidData1_Successful
✅ GetDataLengthLLL_ValidData2_Successful

✅ Portalum.Zvt.UnitTest.ChecksumTest

✅ CalcCrc2_TestRandomPerformance_Successful

✅ Portalum.Zvt.UnitTest.IntermediateStatusInformationParserTest

✅ GetMessage_EmptyData_Failure
✅ GetMessage_InsertCard_Successful
✅ GetMessage_NullInput_Failure
✅ GetMessage_TlvData_Failure

✅ Portalum.Zvt.UnitTest.NumberHelperTest

✅ BcdToInt_InvalidBcdNumber_Failure
✅ BcdToInt_ValidBcdNumber_Successful
✅ BoolArrayToInt_ToManyElements_Failure
✅ DecimalToBcd_CommercialRoundOff_Successful
✅ DecimalToBcd_CommercialRoundUp_Successful
✅ DecimalToBcd_Convert
✅ DecimalToBcd_MaximumNumberOfDigits_Successful
✅ DecimalToBcd_MaximumNumberOfDigits1_Successful
✅ IntToBcd_4DigitNumber_Successful
✅ IntToBcd_6DigitNumber_Successful
✅ IntToBcd_8DigitNumber_Successful
✅ IntToBcd_EuroCurrencyNumericCode_Successful

✅ Portalum.Zvt.UnitTest.PrintLineTest

✅ ProcessData_CorruptLinesReceivedFragment_Successful
✅ ProcessData_CorruptLinesReceivedPackageToLarge_Successful
✅ ProcessData_LineReceived1_Successful
✅ ProcessData_LineReceivedCardCompleteWithTlv_Successful

✅ Portalum.Zvt.UnitTest.PrintTextBlockTest

✅ Parse_AdministrationReceipt_Successful
✅ Parse_CardholderReceipt_Successful
✅ Parse_CorruptReceipt_Failure
✅ Parse_MerchantReceipt_Successful

✅ Portalum.Zvt.UnitTest.ReceiveHandlerTest

✅ ProcessData_FragmentedDataPackets1_Successful
✅ ProcessData_FragmentedDataPackets2_Successful
✅ ProcessData_FullDataPacket_Successful

✅ Portalum.Zvt.UnitTest.RegistrationConfigTest

✅ GetServiceByte_CheckServiceByte1_Successful
✅ GetServiceByte_CheckServiceByte2_Successful
✅ GetServiceByte_GetConfigByte1_Successful
✅ GetServiceByte_GetConfigByte2_Successful

✅ Portalum.Zvt.UnitTest.SerialTest

⚪ SerialProvider_StartPayment_Successful

✅ Portalum.Zvt.UnitTest.StatusInformationParserTest

✅ Parse_AbortByKey_Successful
✅ Parse_AbortViaTimeout_Successful
✅ Parse_PaymentGood1_Successful
✅ Parse_PaymentGood2_Successful
✅ Parse_ReversalGood1_Successful
✅ Parse_SystemError_Successful
✅ Parse_TlvInfos1_Successful
✅ Parse_TlvInfos2_Successful

✅ Portalum.Zvt.UnitTest.TlvParserTest

✅ GetLength_3Bytes_Successful
✅ GetTagFieldInfo_UniversalClassConstructed1_Successful
✅ GetTagFieldInfo_UniversalClassPrimitive1_Successful
✅ GetTagFieldInfo_UniversalClassPrimitive2_Successful
✅ GetTagFieldInfo_UniversalClassPrimitive3_Successful
✅ GetTagFieldInfo_UniversalClassPrimitive4_Successful
✅ GetTagFieldInfo_UniversalClassPrimitive5_Successful

✅ Portalum.Zvt.UnitTest.ZvtClientTest

✅ EndOfDayAsync_CommandCompletionReceivedWithAbortReceived1_Successful
✅ EndOfDayAsync_CommandCompletionReceivedWithAbortReceived2_Successful
✅ EndOfDayAsync_CommandCompletionReceivedWithCompletionReceived_Successful
✅ EndOfDayAsync_CommandCompletionReceivedWithoutCompletionReceived_Successful
✅ PaymentAsync_CardRejected_Successful
✅ PaymentAsync_CorruptDataFlow_Failure
✅ PaymentAsync_IssueOfGoods_DelayedFailure_Successful
✅ PaymentAsync_IssueOfGoods_DelayedSuccess_Successful
✅ PaymentAsync_IssueOfGoods_RejectedCard_Successful
✅ PaymentAsync_SuccessfulPayment_Successful

✅ Portalum.Zvt.UnitTest.ZvtCommunicationTest

✅ SendCommandAsync_CommandCompletionReceived_Successful
✅ SendCommandAsync_CommandCompletionReceivedTooLate_Successful
✅ SendCommandAsync_CommandCompletionReceivedWithDataFragment_Successful
✅ SendCommandAsync_NegativeCompletionReceived_Successful
✅ SendCommandAsync_NoDataReceived_Successful
✅ SendCommandAsync_NotSupported_Successful
✅ SendCommandAsync_ReceiveInvalidData_Successful