예제 #1
0
        public bool Equals(IAdditiveCollection other)
        {
            if (this.GetLength() != other.GetLength())
            {
                return(false);
            }

            foreach (var add in this.Additives)
            {
                if (!other.Additives.Contains(add))
                {
                    return(false);
                }
            }
            return(true);
        }
예제 #2
0
 public void Test_Add()
 {
     collection.Add(new Additive());
     Assert.True(collection.GetLength() == 1);
 }