Skip to content

Commit 3fdb55c

Browse files
committed
Remove obsolete TestLoggingManager CTOR overloads
1 parent d659711 commit 3fdb55c

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

Ical.Net.Tests/Logging.Tests/LoggingProviderTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
namespace Ical.Net.Tests.Logging.Tests;
1515

16-
/// LoggingProvider.SetLoggerFactory is static and gets
1716
/// <summary>
1817
/// LoggingProvider.SetLoggerFactory is static and gets
1918
/// <list type="bullet">

Ical.Net.Tests/Logging/TestLoggingManager.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,6 @@ internal sealed class TestLoggingManager : TestLoggingManagerBase
2222
public TestLoggingManager() : this(options:null)
2323
{}
2424

25-
/// <summary>
26-
/// Creates a new instance of the <see cref="TestLoggingManager"/> class with a specified log file.
27-
/// </summary>
28-
public TestLoggingManager(string logFile) : this(logFile, options: null)
29-
{ }
30-
31-
/// <summary>
32-
/// Creates a new instance of the <see cref="TestLoggingManager"/> class with a specified log file.
33-
/// </summary>
34-
/// <param name="logFile">
35-
/// The relative or absolute path of the file to store the logs.
36-
/// An existing file will be deleted before logging starts.
37-
/// </param>
38-
/// <param name="options">
39-
/// The options for configuring the logging behavior.
40-
/// May be <see langword="null"/> to use default options.
41-
/// </param>
42-
public TestLoggingManager(string logFile, Options? options)
43-
: base(options)
44-
{
45-
(options ?? new Options()).LogToFileLogPath = logFile;
46-
}
47-
4825
/// <summary>
4926
/// Creates a new instance of the <see cref="TestLoggingManager"/> class with an in-memory log target.
5027
/// </summary>

Ical.Net.Tests/Logging/TestLoggingManagerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Ical.Net.Tests.Logging;
1414
/// </summary>
1515
/// <remarks>
1616
/// The <see cref="TestLoggingManagerBase"/> class initializes a logging configuration using
17-
/// NLog and provides a logger factory that can be used to create loggers.
17+
/// an underlying logging library and provides a logger factory that can be used to create loggers.
1818
/// It supports custom logging rules and stores logs in memory for retrieval.
1919
/// </remarks>
2020
internal abstract class TestLoggingManagerBase : IDisposable

0 commit comments

Comments
 (0)