Skip to content

Commit

Permalink
non-static?
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Nov 24, 2023
1 parent 2b31b13 commit cf782f4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Jint.Tests/Runtime/EngineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ public partial class EngineTests : IDisposable
private readonly Engine _engine;
private int countBreak = 0;
private StepMode stepMode;
private static readonly TimeZoneInfo _pacificTimeZone;
private static readonly TimeZoneInfo _tongaTimeZone;
private static readonly TimeZoneInfo _easternTimeZone;
private readonly TimeZoneInfo _pacificTimeZone;
private readonly TimeZoneInfo _tongaTimeZone;
private readonly TimeZoneInfo _easternTimeZone;


static EngineTests()
public EngineTests(ITestOutputHelper output)
{
try
{
Expand Down Expand Up @@ -59,10 +58,7 @@ static EngineTests()
// should be natively supported soon https://github.com/dotnet/runtime/issues/18644
_easternTimeZone = TimeZoneInfo.FindSystemTimeZoneById("America/New_York");
}
}

public EngineTests(ITestOutputHelper output)
{
_engine = new Engine()
.SetValue("log", new Action<object>(o => output.WriteLine(o.ToString())))
.SetValue("assert", new Action<bool>(Assert.True))
Expand Down

0 comments on commit cf782f4

Please sign in to comment.