Content-Length: 1421 | pFad | http://github.com/dotnet/winforms/pull/13497.diff

thub.com diff --git a/src/test/unit/System.Windows.Forms/System/Windows/Forms/GridEntryRecreateChildrenEventArgsTests.cs b/src/test/unit/System.Windows.Forms/System/Windows/Forms/GridEntryRecreateChildrenEventArgsTests.cs new file mode 100644 index 00000000000..b14c0d1cf10 --- /dev/null +++ b/src/test/unit/System.Windows.Forms/System/Windows/Forms/GridEntryRecreateChildrenEventArgsTests.cs @@ -0,0 +1,32 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Windows.Forms.PropertyGridInternal; + +namespace System.Windows.Forms.Tests; + +public class GridEntryRecreateChildrenEventArgsTests +{ + [Theory] + [InlineData(0, 0)] + [InlineData(1, 2)] + [InlineData(-1, 5)] + [InlineData(10, -3)] + [InlineData(int.MaxValue, int.MinValue)] + [InlineData(int.MinValue, int.MaxValue)] + public void GridEntryRecreateChildrenEventArgs_SetsProperties(int oldCount, int newCount) + { + GridEntryRecreateChildrenEventArgs args = new(oldCount, newCount); + + args.OldChildCount.Should().Be(oldCount); + args.NewChildCount.Should().Be(newCount); + } + + [Fact] + public void GridEntryRecreateChildrenEventArgs_Inherits_EventArgs() + { + GridEntryRecreateChildrenEventArgs args = new(1, 2); + + args.Should().BeAssignableTo(); + } +}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/dotnet/winforms/pull/13497.diff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy