// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Xunit;

namespace System.Composition.AttributeModel.Tests
{
    public class ImportManyAttributeTests
    {
        [Fact]
        public void Ctor_Default()
        {
            var attribute = new ImportManyAttribute();
            Assert.Null(attribute.ContractName);
        }

        [Theory]
        [InlineData(null)]
        [InlineData("ContractName")]
        public void Ctor_ContractName(string contractName)
        {
            var attribute = new ImportManyAttribute(contractName);
            Assert.Equal(contractName, attribute.ContractName);
        }
    }
}
