diff --git a/tests/Beutl.Core.UnitTests/CommandRecorderTests.cs b/tests/Beutl.Core.UnitTests/CommandRecorderTests.cs index f1809719d..a06835f42 100644 --- a/tests/Beutl.Core.UnitTests/CommandRecorderTests.cs +++ b/tests/Beutl.Core.UnitTests/CommandRecorderTests.cs @@ -2,6 +2,8 @@ using NUnit.Framework; +using Beutl.Logging; + namespace Beutl.Core.UnitTests; public class CommandRecorderTests @@ -9,7 +11,7 @@ public class CommandRecorderTests [SetUp] public void Setup() { - BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); + Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); } [Test] diff --git a/tests/Beutl.Core.UnitTests/JsonSerializationTest.cs b/tests/Beutl.Core.UnitTests/JsonSerializationTest.cs index efc5d6e39..7ed6e15fc 100644 --- a/tests/Beutl.Core.UnitTests/JsonSerializationTest.cs +++ b/tests/Beutl.Core.UnitTests/JsonSerializationTest.cs @@ -7,6 +7,7 @@ using Beutl.Operators.Configure.Transform; using Beutl.Operators.Source; using Beutl.ProjectSystem; +using Beutl.Logging; using Microsoft.Extensions.Logging; @@ -19,7 +20,7 @@ public class JsonSerializationTest [SetUp] public void Setup() { - BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); + Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); } [Test] diff --git a/tests/Beutl.Core.UnitTests/PropertyChangeTrackerTests.cs b/tests/Beutl.Core.UnitTests/PropertyChangeTrackerTests.cs index cd958f547..b6e819d50 100644 --- a/tests/Beutl.Core.UnitTests/PropertyChangeTrackerTests.cs +++ b/tests/Beutl.Core.UnitTests/PropertyChangeTrackerTests.cs @@ -1,5 +1,6 @@  using Beutl.Collections; +using Beutl.Logging; using Microsoft.Extensions.Logging; @@ -12,7 +13,7 @@ public class PropertyChangeTrackerTests [SetUp] public void Setup() { - BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); + Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); } [Test] diff --git a/tests/Beutl.Engine.UnitTests/DeferradCanvasTests.cs b/tests/Beutl.Engine.UnitTests/DeferradCanvasTests.cs index 9bb0a23de..cd0043730 100644 --- a/tests/Beutl.Engine.UnitTests/DeferradCanvasTests.cs +++ b/tests/Beutl.Engine.UnitTests/DeferradCanvasTests.cs @@ -2,6 +2,7 @@ using Beutl.Graphics.Rendering; using Beutl.Media; using Beutl.Media.Pixel; +using Beutl.Logging; using Microsoft.Extensions.Logging; @@ -14,7 +15,7 @@ public class DeferradCanvasTests [SetUp] public void Setup() { - BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); + Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); } private static void Draw(ICanvas canvas) diff --git a/tests/Beutl.Engine.UnitTests/ShapeTests.cs b/tests/Beutl.Engine.UnitTests/ShapeTests.cs index 0da278cf3..bfed28e7a 100644 --- a/tests/Beutl.Engine.UnitTests/ShapeTests.cs +++ b/tests/Beutl.Engine.UnitTests/ShapeTests.cs @@ -2,6 +2,7 @@ using Beutl.Graphics.Shapes; using Beutl.Media; using Beutl.Media.Pixel; +using Beutl.Logging; using Microsoft.Extensions.Logging; @@ -15,7 +16,7 @@ public class ShapeTests [SetUp] public void Setup() { - BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); + Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); } [Test] diff --git a/tests/Beutl.Engine.UnitTests/StyleTests.cs b/tests/Beutl.Engine.UnitTests/StyleTests.cs index 652c460d9..9c07e10f9 100644 --- a/tests/Beutl.Engine.UnitTests/StyleTests.cs +++ b/tests/Beutl.Engine.UnitTests/StyleTests.cs @@ -2,6 +2,7 @@ using Beutl.Graphics.Shapes; using Beutl.Media; using Beutl.Styling; +using Beutl.Logging; using Microsoft.Extensions.Logging; @@ -22,7 +23,7 @@ public class StyleTests [SetUp] public void Setup() { - BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); + Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); _obj = new StyleableObject(); Style style1 = new Style diff --git a/tests/Beutl.Engine.UnitTests/TextBlockTests.cs b/tests/Beutl.Engine.UnitTests/TextBlockTests.cs index e96a0bbf5..b11255907 100644 --- a/tests/Beutl.Engine.UnitTests/TextBlockTests.cs +++ b/tests/Beutl.Engine.UnitTests/TextBlockTests.cs @@ -2,6 +2,7 @@ using Beutl.Graphics.Shapes; using Beutl.Media; using Beutl.Media.Pixel; +using Beutl.Logging; using Microsoft.Extensions.Logging; @@ -29,7 +30,7 @@ public class TextBlockTests [SetUp] public void Setup() { - BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); + Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); _ = TypefaceProvider.Typeface(); } diff --git a/tests/Beutl.Engine.UnitTests/TextElementsTests.cs b/tests/Beutl.Engine.UnitTests/TextElementsTests.cs index c2fb973fc..8a1676980 100644 --- a/tests/Beutl.Engine.UnitTests/TextElementsTests.cs +++ b/tests/Beutl.Engine.UnitTests/TextElementsTests.cs @@ -5,6 +5,7 @@ using Beutl.Graphics.Shapes; using Beutl.Media; using Beutl.Media.TextFormatting; +using Beutl.Logging; using Microsoft.Extensions.Logging; @@ -17,7 +18,7 @@ public class TextElementsTests [SetUp] public void Setup() { - BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); + Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole()); _ = TypefaceProvider.Typeface(); }