mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-03 23:12:42 +00:00
8d7a169590
* Change Frame identifier from Int64 to String Issue https://github.com/cefsharp/CefSharp/issues/4737 * Fix SetCanExecuteJavascriptOnMainFrame frameId parsing * Add tests * NetCore Tests - Install missing packages
36 lines
994 B
C#
36 lines
994 B
C#
// Copyright © 2021 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
using CefSharp.Internals;
|
|
using Xunit;
|
|
|
|
namespace CefSharp.Test.Framework
|
|
{
|
|
public class MethodRunnerQueueTests
|
|
{
|
|
[Fact]
|
|
public void DisposeQueueThenEnqueueMethodInvocation()
|
|
{
|
|
var methodInvocation = new MethodInvocation(1, "1", 1, "Testing", 1);
|
|
methodInvocation.Parameters.Add("Echo Me!");
|
|
|
|
var objectRepository = new JavascriptObjectRepository
|
|
{
|
|
NameConverter = null
|
|
};
|
|
|
|
var methodRunnerQueue = new MethodRunnerQueue(objectRepository);
|
|
|
|
//Dispose
|
|
methodRunnerQueue.Dispose();
|
|
|
|
//Enqueue
|
|
var ex = Record.Exception(() => methodRunnerQueue.Enqueue(methodInvocation));
|
|
|
|
//Ensure no exception thrown
|
|
Assert.Null(ex);
|
|
}
|
|
}
|
|
}
|