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