We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33c230f commit 88b8094Copy full SHA for 88b8094
src/React.Tests/Core/JavaScriptEngineFactoryTest.cs
@@ -9,13 +9,25 @@
9
10
using System.Threading;
11
using JavaScriptEngineSwitcher.Core;
12
+using Moq;
13
using NUnit.Framework;
14
15
namespace React.Tests.Core
16
{
17
[TestFixture]
18
public class JavaScriptEngineFactoryTest
19
20
+ static JavaScriptEngineFactoryTest()
21
+ {
22
+ // TODO: Make this nicer
23
+ JavaScriptEngineFactory.AddFactoryWithPriority(() =>
24
25
+ var mockJsEngine = new Mock<IJsEngine>();
26
+ mockJsEngine.Setup(x => x.Evaluate<int>("1 + 1")).Returns(2);
27
+ return mockJsEngine.Object;
28
+ }, 1);
29
+ }
30
+
31
[Test]
32
public void ShouldCallOnNewEngineWhenCreatingNew()
33
0 commit comments