Пример #1
0
        public void AddLogLine_LogLineIsSet_DoesntThrowExceptions()
        {
            // Arrange
            var ds = new DocumentService(_testDirectory);

            ds.CreateLogFile();
            LogLine logLine = new LogLine();

            // Act
            Action act = () => ds.AddLogLine(logLine);

            // Assert
            act.ShouldNotThrow();
        }
Пример #2
0
        public void AddLogLine_LogLineIsNull_ExceptionIsHandled()
        {
            // Arrange

            var ds = new DocumentService(_testDirectory);

            ds.CreateLogFile();

            LogLine logLine = null;

            // Act
            Action act = () => ds.AddLogLine(logLine);

            // Assert
            act.ShouldNotThrow();
        }