File: System\Windows\Forms\Design\Behavior\BehaviorDragDropEventArgsTests.cs
Web Access
Project: src\src\System.Windows.Forms.Design\tests\UnitTests\System.Windows.Forms.Design.Tests.csproj (System.Windows.Forms.Design.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Collections;
 
namespace System.Windows.Forms.Design.Behavior.Tests;
 
public class BehaviorDragDropEventArgsTests
{
    public static IEnumerable<object[]> Ctor_ICollection_TestData()
    {
        yield return new object[] { null };
        yield return new object[] { Array.Empty<object>() };
        yield return new object[] { new object[] { null } };
    }
 
    [Theory]
    [MemberData(nameof(Ctor_ICollection_TestData))]
    public void Ctor_ICollection(ICollection components)
    {
        BehaviorDragDropEventArgs e = new(components);
        Assert.Same(components, e.DragComponents);
    }
}