public void AddAllFromOther() { ConstructorArgumentValues other = new ConstructorArgumentValues(); other.AddIndexedArgumentValue(1, DBNull.Value); other.AddIndexedArgumentValue(2, "Foo"); other.AddIndexedArgumentValue(3, 3); ConstructorArgumentValues values = new ConstructorArgumentValues(); values.AddAll(other); Assert.AreEqual(other.ArgumentCount, values.ArgumentCount, "Must have been the same since one was filled up with the values in the other."); }
public void AddAllDoesntChokeOnNullArgument() { ConstructorArgumentValues values = new ConstructorArgumentValues(); values.AddAll(null); }