Пример #1
0
        public void TestCheckValueWithIncrementalHash()
        {
            string ExpectedString;
            UInt32 Check_Value;

            foreach (var Idx in WorkingIndex)
            {
                Check_Value = GetWorkingValue(Idx);
                crcObj.Initialize();

                ExpectedString = Check_Value.ToString("X");

                TestHelper.TestIncrementalHash(TestConstants.OnetoNine,
                                               ExpectedString, crcObj);
            }
        }
Пример #2
0
        public void TestCheckValue()
        {
            string ActualString, ExpectedString;
            UInt32 Check_Value;

            foreach (var Idx in WorkingIndex)
            {
                Check_Value = GetWorkingValue(Idx);

                ExpectedString = Check_Value.ToString("X");

                ActualString = TestHelper.LeftStrip(crcObj.ComputeString(TestConstants.OnetoNine, Encoding.UTF8).ToString(), '0');

                Assert.AreEqual(ExpectedString, ActualString);
            } // end foreach
        }