LediReader
/
EpubReader
/Source
/VersOne.Epub.Test
/Unit
/Exceptions
/EpubContentCollectionExceptionTests.cs
| namespace VersOne.Epub.Test.Unit.Exceptions | |
| { | |
| public class EpubContentCollectionExceptionTests | |
| { | |
| private const string TEST_MESSAGE = "test message"; | |
| [] | |
| public void CreateWithNoArgumentsTest() | |
| { | |
| _ = new EpubContentCollectionException(); | |
| } | |
| [] | |
| public void CreateWithMessageTest() | |
| { | |
| EpubContentCollectionException epubContentCollectionException = new(TEST_MESSAGE); | |
| Assert.Equal(TEST_MESSAGE, epubContentCollectionException.Message); | |
| } | |
| [] | |
| public void CreateWithMessageAndInnerExceptionTest() | |
| { | |
| Exception innerException = new(); | |
| EpubContentCollectionException epubContentCollectionException = new(TEST_MESSAGE, innerException); | |
| Assert.Equal(TEST_MESSAGE, epubContentCollectionException.Message); | |
| Assert.Equal(innerException, epubContentCollectionException.InnerException); | |
| } | |
| } | |
| } | |