public void Constructor_NullType() { PropertyTypeMustBeACollectionException ex = new PropertyTypeMustBeACollectionException(null); Assert.AreEqual(string.Format(PropertyTypeMustBeACollectionException.MessageFormat, "<unknown>"), ex.Message); }
public void Constructor_MessageCorrect() { PropertyTypeMustBeACollectionException ex = new PropertyTypeMustBeACollectionException(this.GetType()); Assert.AreEqual(string.Format(PropertyTypeMustBeACollectionException.MessageFormat, this.GetType()), ex.Message); }