Skip to content

Commit

Permalink
ビルドエラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Jan 20, 2024
1 parent 68dfa5b commit b3e3c13
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 8 deletions.
4 changes: 3 additions & 1 deletion tests/Beutl.Core.UnitTests/CommandRecorderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

using NUnit.Framework;

using Beutl.Logging;

namespace Beutl.Core.UnitTests;

public class CommandRecorderTests
{
[SetUp]
public void Setup()
{
BeutlApplication.Current.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole());
Log.LoggerFactory = LoggerFactory.Create(b => b.AddSimpleConsole());
}

[Test]
Expand Down
3 changes: 2 additions & 1 deletion tests/Beutl.Core.UnitTests/JsonSerializationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Beutl.Operators.Configure.Transform;
using Beutl.Operators.Source;
using Beutl.ProjectSystem;
using Beutl.Logging;

using Microsoft.Extensions.Logging;

Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion tests/Beutl.Core.UnitTests/PropertyChangeTrackerTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

using Beutl.Collections;
using Beutl.Logging;

using Microsoft.Extensions.Logging;

Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion tests/Beutl.Engine.UnitTests/DeferradCanvasTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Beutl.Graphics.Rendering;
using Beutl.Media;
using Beutl.Media.Pixel;
using Beutl.Logging;

using Microsoft.Extensions.Logging;

Expand All @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion tests/Beutl.Engine.UnitTests/ShapeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Beutl.Graphics.Shapes;
using Beutl.Media;
using Beutl.Media.Pixel;
using Beutl.Logging;

using Microsoft.Extensions.Logging;

Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion tests/Beutl.Engine.UnitTests/StyleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Beutl.Graphics.Shapes;
using Beutl.Media;
using Beutl.Styling;
using Beutl.Logging;

using Microsoft.Extensions.Logging;

Expand All @@ -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<StyleableObject>
Expand Down
3 changes: 2 additions & 1 deletion tests/Beutl.Engine.UnitTests/TextBlockTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Beutl.Graphics.Shapes;
using Beutl.Media;
using Beutl.Media.Pixel;
using Beutl.Logging;

using Microsoft.Extensions.Logging;

Expand Down Expand Up @@ -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();
}

Expand Down
3 changes: 2 additions & 1 deletion tests/Beutl.Engine.UnitTests/TextElementsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Beutl.Graphics.Shapes;
using Beutl.Media;
using Beutl.Media.TextFormatting;
using Beutl.Logging;

using Microsoft.Extensions.Logging;

Expand All @@ -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();
}

Expand Down

0 comments on commit b3e3c13

Please sign in to comment.