Skip to content

Commit a762425

Browse files
committed
Avoid implicit casts in tests that aren't there to test it
1 parent c73fd33 commit a762425

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dotnet/test/common/BiDi/Script/CallFunctionLocalValueTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ await context.Script.CallFunctionAsync($$"""
314314
[Test]
315315
public void CanCallFunctionWithArgumentArray()
316316
{
317-
var arg = new ArrayLocalValue(["hi"]);
317+
var arg = new ArrayLocalValue([new StringLocalValue("hi")]);
318318

319319
Assert.That(async () =>
320320
{
@@ -331,7 +331,7 @@ await context.Script.CallFunctionAsync($$"""
331331
[Test]
332332
public void CanCallFunctionWithArgumentObject()
333333
{
334-
var arg = new ObjectLocalValue([["objKey", "objValue"]]);
334+
var arg = new ObjectLocalValue([[new StringLocalValue("objKey"), new StringLocalValue("objValue")]]);
335335

336336
Assert.That(async () =>
337337
{
@@ -348,7 +348,7 @@ await context.Script.CallFunctionAsync($$"""
348348
[Test]
349349
public void CanCallFunctionWithArgumentMap()
350350
{
351-
var arg = new MapLocalValue([["mapKey", "mapValue"]]);
351+
var arg = new MapLocalValue([[new StringLocalValue("mapKey"), new StringLocalValue("mapValue")]]);
352352

353353
Assert.That(async () =>
354354
{
@@ -365,7 +365,7 @@ await context.Script.CallFunctionAsync($$"""
365365
[Test]
366366
public void CanCallFunctionWithArgumentSet()
367367
{
368-
var arg = new SetLocalValue(["setKey"]);
368+
var arg = new SetLocalValue([new StringLocalValue("setKey")]);
369369

370370
Assert.That(async () =>
371371
{

0 commit comments

Comments
 (0)