diff --git a/test/PlcInterface.Ads.Tests/DynamicObjectExtensionsTests.cs b/test/PlcInterface.Ads.Tests/DynamicObjectExtensionsTests.cs index c8a3f71..871191f 100644 --- a/test/PlcInterface.Ads.Tests/DynamicObjectExtensionsTests.cs +++ b/test/PlcInterface.Ads.Tests/DynamicObjectExtensionsTests.cs @@ -152,7 +152,7 @@ public void CleanDynamicConvertsStructTypeToExpando() // Assert Assert.AreEqual(255, expando.Property1); Assert.AreEqual("test", expando.Property2); - Assert.AreEqual(false, expando.Property3); + Assert.AreEqual(expected: false, actual: expando.Property3); Assert.AreEqual(10L, expando.Property4); Assert.IsNull(expando.Property5); } diff --git a/test/PlcInterface.IntegrationTests/Extension/AssertObjectValue.cs b/test/PlcInterface.IntegrationTests/Extension/AssertObjectValue.cs index 7fa2484..ff03365 100644 --- a/test/PlcInterface.IntegrationTests/Extension/AssertObjectValue.cs +++ b/test/PlcInterface.IntegrationTests/Extension/AssertObjectValue.cs @@ -30,8 +30,8 @@ private static object GetDynamicValue(dynamic o, string name) return expando[name]; } - var arguments = new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }; - var binder = Microsoft.CSharp.RuntimeBinder.Binder.GetMember(CSharpBinderFlags.None, name, null, arguments); + var arguments = new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, name: null) }; + var binder = Microsoft.CSharp.RuntimeBinder.Binder.GetMember(CSharpBinderFlags.None, name, context: null, arguments); var site = CallSite>.Create(binder); return site.Target(site, o); }