natix.CompactDS.DiffSetRL2.AssertEquality C# (CSharp) Method

AssertEquality() public method

public AssertEquality ( Bitmap _other ) : void
_other Bitmap
return void
        public override void AssertEquality(Bitmap _other)
        {
            DiffSetRL2 other = _other as DiffSetRL2;
            if (this.N != other.N) {
                throw new ArgumentException ("DiffSet N difference");
            }
            if (this.M != other.M) {
                throw new ArgumentException ("DiffSet M difference");
            }
            if (this.B != other.B) {
                throw new ArgumentException ("DiffSet B difference");
            }
            Assertions.AssertIList<int> (this.Samples, other.Samples, "DiffSet Samples difference");
            Assertions.AssertIList<long> (this.Offsets, other.Offsets, "DiffSet Offsets difference");
            this.Stream.AssertEquality (other.Stream);
        }