Пример #1
0
        public void MultiplicativeInverseShouldBeCalculationCorrect(byte number, MultiplicativeInverseCalculationWay way,
                                                                    byte expectedInverse)
        {
            //arrange
            var gfUnderTest = new GaloisField();

            //act
            var actualInverse = gfUnderTest.MultiplicativeInverse(number, way);

            //assert
            Assert.Equal(expectedInverse, actualInverse);
        }