public void Can_Create_FormatExceptionWithMessage() { var ex = new InvalidPersianDateFormatException("Invalid date format"); Assert.That(ex.Message, Is.Not.Empty); Assert.AreEqual("Invalid date format", ex.Message); }
public void Can_Create_InvalidPersianDateFormat_Exception() { var ex = new InvalidPersianDateFormatException(); Assert.That(ex.Message, Is.Empty); }