public void CheckIntegrity_WithNonZeroRemainderTest() { string textWithCRC = "1" + CRC.BinaryText + "1" + CRC.Compute(); var dataIntegrity = new CyclicalRedundancyCheck(); string remainder = dataIntegrity.CheckMessageIntegrity(textWithCRC, CRC.GeneratingPolynom); Assert.IsTrue(remainder.Contains("1")); }
public void Initialize() { CRC = new CyclicalRedundancyCheck(text, polynom); }