Parameters
- other
Library/Library.Test/TestCrc64.cs
C# | Copy Code |
---|---|
Crc64 empty = new Crc64(); Crc64 value = new Crc64("Hello"); Crc64 copy = new Crc64(value.Value); Assert.IsTrue(value.Equals(copy)); Assert.IsFalse(value.Equals(empty)); Assert.IsTrue(value.Equals(copy.Value)); Assert.IsFalse(value.Equals(empty.Value)); Assert.IsTrue(value.Equals((object)copy)); Assert.IsFalse(value.Equals((object)empty)); Assert.IsTrue(value.Equals((object)copy.Value)); Assert.IsFalse(value.Equals((object)empty.Value)); |
VB.NET | Copy Code |
---|---|
Dim empty As New Crc64() Dim value As New Crc64("Hello") Dim copy As New Crc64(value.Value) Assert.IsTrue(value.Equals(copy)) Assert.IsFalse(value.Equals(empty)) Assert.IsTrue(value.Equals(copy.Value)) Assert.IsFalse(value.Equals(empty.Value)) Assert.IsTrue(value.Equals(DirectCast(copy, Object))) Assert.IsFalse(value.Equals(DirectCast(empty, Object))) Assert.IsTrue(value.Equals(DirectCast(copy.Value, Object))) Assert.IsFalse(value.Equals(DirectCast(empty.Value, Object))) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7