@@ -116,32 +116,32 @@ public void Select_ValueBubblingTest_MultiSelection()
116116 select . Instance . Text . Should ( ) . Be ( "2, 1" ) ;
117117 }
118118
119- // [Test]
120- // public async Task Select_ValueChangeEventCountTest()
121- // {
122- // var comp = Context.RenderComponent<SelectEventCountTest>(x =>
123- // {
124- // x.Add(c => c.MultiSelection, false);
125- // });
126- // var select = comp.FindComponent<MudSelectExtended<string>>();
127- // var input = comp.Find("div.mud-input-control");
128-
129- // comp.Instance.ValueChangeCount.Should().Be(0);
130- // comp.Instance.ValuesChangeCount.Should().Be(0);
131-
132- // await comp.InvokeAsync(() => select.SetParam("Value", "1"));
133- // await comp.InvokeAsync(() => select.Instance.ForceUpdate());
134- // comp.WaitForAssertion(() => comp.Instance.ValueChangeCount.Should().Be(1));
135- // comp.Instance.ValuesChangeCount.Should().Be(1);
136- // select.Instance.Value.Should().Be("1");
137-
138- // // Changing value programmatically without ForceUpdate should change value, but should not fire change events
139- // // Its by design, so this part can be change if design changes
140- // await comp.InvokeAsync(() => select.SetParam("Value", "2"));
141- // comp.WaitForAssertion(() => comp.Instance.ValueChangeCount.Should().Be(1));
142- // comp.Instance.ValuesChangeCount.Should().Be(1);
143- // select.Instance.Value.Should().Be("2");
144- // }
119+ [ Test ]
120+ public async Task Select_ValueChangeEventCountTest ( )
121+ {
122+ var comp = Context . RenderComponent < SelectEventCountTest > ( x =>
123+ {
124+ x . Add ( c => c . MultiSelection , false ) ;
125+ } ) ;
126+ var select = comp . FindComponent < MudSelectExtended < string > > ( ) ;
127+ var input = comp . Find ( "div.mud-input-control" ) ;
128+
129+ comp . Instance . ValueChangeCount . Should ( ) . Be ( 0 ) ;
130+ comp . Instance . ValuesChangeCount . Should ( ) . Be ( 0 ) ;
131+
132+ await comp . InvokeAsync ( ( ) => select . SetParam ( "Value" , "1" ) ) ;
133+ await comp . InvokeAsync ( ( ) => select . Instance . ForceUpdate ( ) ) ;
134+ comp . WaitForAssertion ( ( ) => comp . Instance . ValueChangeCount . Should ( ) . Be ( 1 ) ) ;
135+ comp . Instance . ValuesChangeCount . Should ( ) . Be ( 1 ) ;
136+ select . Instance . Value . Should ( ) . Be ( "1" ) ;
137+
138+ // Changing value programmatically without ForceUpdate should change value, but should not fire change events
139+ // Its by design, so this part can be change if design changes
140+ await comp . InvokeAsync ( ( ) => select . SetParam ( "Value" , "2" ) ) ;
141+ comp . WaitForAssertion ( ( ) => comp . Instance . ValueChangeCount . Should ( ) . Be ( 1 ) ) ;
142+ comp . Instance . ValuesChangeCount . Should ( ) . Be ( 1 ) ;
143+ select . Instance . Value . Should ( ) . Be ( "2" ) ;
144+ }
145145
146146 [ Test ]
147147 public async Task Select_ValueChangeEventCountTest_MultiSelection ( )
0 commit comments