From 56273e3df720fb36b4b1206a97b57c4d46ce42e4 Mon Sep 17 00:00:00 2001 From: Jonathan Horvath Date: Mon, 28 Oct 2024 15:44:44 -0400 Subject: [PATCH] Cleanup code --- src/OSDP.Net.Tests/ControlPanelTest.cs | 1 - src/OSDP.Net.Tests/Global.cs | 23 ------------------- .../IntegrationTests/PeripheryDeviceTest.cs | 1 - 3 files changed, 25 deletions(-) delete mode 100644 src/OSDP.Net.Tests/Global.cs diff --git a/src/OSDP.Net.Tests/ControlPanelTest.cs b/src/OSDP.Net.Tests/ControlPanelTest.cs index fb170898..4a241bbf 100644 --- a/src/OSDP.Net.Tests/ControlPanelTest.cs +++ b/src/OSDP.Net.Tests/ControlPanelTest.cs @@ -3,7 +3,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; diff --git a/src/OSDP.Net.Tests/Global.cs b/src/OSDP.Net.Tests/Global.cs deleted file mode 100644 index 29f4cd19..00000000 --- a/src/OSDP.Net.Tests/Global.cs +++ /dev/null @@ -1,23 +0,0 @@ - -using Microsoft.Extensions.Logging; -using NUnit.Framework; - -namespace OSDP.Net.Tests -{ - [SetUpFixture] - class GlobalSetup - { - public static ILogger CreateLogger() => LoggerFactory.CreateLogger(); - - [OneTimeSetUp] - public void BeforeAnyTests() - { - LoggerFactory.AddLog4Net(); - - // Is next line needed? How does log4net know to write log out to console?? Yet it seems to - //BasicConfigurator.Configure(); - } - - private static readonly LoggerFactory LoggerFactory = new(); - } -} \ No newline at end of file diff --git a/src/OSDP.Net.Tests/IntegrationTests/PeripheryDeviceTest.cs b/src/OSDP.Net.Tests/IntegrationTests/PeripheryDeviceTest.cs index 81526e04..b6d687d5 100644 --- a/src/OSDP.Net.Tests/IntegrationTests/PeripheryDeviceTest.cs +++ b/src/OSDP.Net.Tests/IntegrationTests/PeripheryDeviceTest.cs @@ -11,7 +11,6 @@ namespace OSDP.Net.Tests.IntegrationTests; - // // NOTE: Majority of naming/structure in this file is very much a work-in-progress // and will be updated if we continue to build out a set of integration tests