Parameters
- b
Library/Library.Test/TestCrc32.cs
C# | Copy Code |
---|---|
Crc32 crc = new Crc32();
Assert.AreEqual(0, crc.Value);
Assert.AreEqual(0, crc.GetHashCode());
crc.Add(0x1b);
Assert.AreNotEqual(0, crc.Value);
Assert.AreEqual(crc.Value, crc.GetHashCode()); |
VB.NET | Copy Code |
---|---|
Dim crc As New Crc32() Assert.AreEqual(0, crc.Value) Assert.AreEqual(0, crc.GetHashCode()) crc.Add(&H1b) Assert.AreNotEqual(0, crc.Value) Assert.AreEqual(crc.Value, crc.GetHashCode()) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7