public void Message_Correct() { // Given const string MESSAGE = "testing"; // When var exception = new MtgApiException(MESSAGE); // Then Assert.StartsWith(Properties.Resources.MtgError, exception.Message); Assert.EndsWith(MESSAGE, exception.Message); }
public void ContructorTest() { var exception = new MtgApiException <BadRequestException>("this is a test"); Assert.Equal("this is a test", exception.Message); }