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); }
public void Test_Add() { collection.Add(new Additive()); Assert.True(collection.GetLength() == 1); }