public void ShouldPerformDecodeReceivedCodevord(int n, int k, Tuple <FieldElement, FieldElement>[] decodedCodeword, int errorsCount, Polynomial expectedInformationPolynomial) { // When var actualInformationPolynomial = _decoder.Decode(n, k, decodedCodeword, errorsCount); // Then Assert.Equal(expectedInformationPolynomial, actualInformationPolynomial); }
public void ShouldPerformDecodeReceivedCodeword(DecoderTestCase testCase) { // When var actualInformationPolynomial = _decoder.Decode(testCase.N, testCase.K, testCase.DecodedCodeword, testCase.ErrorsCount); // Then Assert.Equal(testCase.Expected, actualInformationPolynomial); }