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

AssertEquality() public method

public AssertEquality ( Bitmap _other ) : void
_other Bitmap
return void
        public override void AssertEquality(Bitmap _other)
        {
            RRR other = _other as RRR;
            if (other == null) {
                throw new ArgumentNullException ("RRR Other should be a RRR object too");
            }
            if (this.N != other.N) {
                throw new ArgumentNullException ("RRR Inequality on N");
            }
            if (this.BlockSize != other.BlockSize) {
                throw new ArgumentException ("RRR Inequality on BlockSize");
            }
            Assertions.AssertIList<int> (this.Klasses, other.Klasses, "RRR Classes");
            Assertions.AssertIList<int> (this.AbsRank, other.AbsRank, "RRR AbsRank");
            Assertions.AssertIList<int> (this.AbsOffset, other.AbsOffset, "RRR AbsOffset");
        }