1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using Xunit; 6 7 namespace System.Runtime.InteropServices.Tests 8 { 9 public class DllImportAttributeTests 10 { 11 [Theory] 12 [InlineData(null)] 13 [InlineData("DllName")] Ctor_SourceInterfaces(string dllName)14 public void Ctor_SourceInterfaces(string dllName) 15 { 16 var attribute = new DllImportAttribute(dllName); 17 Assert.Equal(dllName, attribute.Value); 18 } 19 } 20 } 21