Example #1
0
        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);
        }
Example #2
0
        public void ContructorTest()
        {
            var exception = new MtgApiException <BadRequestException>("this is a test");

            Assert.Equal("this is a test", exception.Message);
        }