public void MappingToAnotherFieldShouldWorkCorrect(byte number, uint irreduciblePolynomial) { //arrange var gfUnderTest = new GaloisField(); //act var inAnotherField = gfUnderTest.ToAnotherField(number, irreduciblePolynomial); gfUnderTest.IrreduciblePolynomial = irreduciblePolynomial; var inOriginalField = gfUnderTest.ToAnotherField(inAnotherField, 0x11b); //assert Assert.Equal(number, inOriginalField); }