16 writes to DataMember
System.Windows.Forms.Tests (16)
System\Windows\Forms\ErrorProviderTests.cs (16)
227
DataMember
= value
232
provider.
DataMember
= value;
242
DataMember
= "OldMember"
245
provider.
DataMember
= value;
249
provider.
DataMember
= value;
270
DataMember
= value
275
provider.
DataMember
= value;
298
DataMember
= dataMember
311
provider.
DataMember
= "dataMember";
322
provider.
DataMember
= "dataMember";
345
DataMember
= "NoSuchValue"
361
Assert.Throws<ArgumentException>(() => provider.
DataMember
= "NoSuchValue");
396
DataMember
= string.Empty,
469
DataMember
= dataMember,
484
DataMember
= "NoSuchValue",
499
DataMember
= "NoSuchValue",
34 references to DataMember
System.Windows.Forms (6)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (6)
21
[ComplexBindingProperties(nameof(DataSource), nameof(
DataMember
))]
188
SetErrorManager(DataSource,
DataMember
, force: true);
250
bool dataMemberChanged =
DataMember
!= newDataMember;
324
SetErrorManager(value,
DataMember
, force: false);
405
SetErrorManager(DataSource,
DataMember
, true);
610
SetErrorManager(DataSource,
DataMember
, true);
System.Windows.Forms.Tests (28)
System\Windows\Forms\ErrorProviderTests.cs (28)
22
Assert.Null(provider.
DataMember
);
45
Assert.Null(provider.
DataMember
);
72
Assert.Null(provider.
DataMember
);
229
Assert.Equal(expected, provider.
DataMember
);
233
Assert.Equal(expected, provider.
DataMember
);
246
Assert.Equal(expected, provider.
DataMember
);
250
Assert.Equal(expected, provider.
DataMember
);
272
Assert.Equal(expected, provider.
DataMember
);
276
Assert.Equal(expected, provider.
DataMember
);
301
Assert.Same(dataMember, provider.
DataMember
);
308
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.
DataMember
)];
319
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.
DataMember
)];
327
Assert.Empty(provider.
DataMember
);
348
Assert.Equal("NoSuchValue", provider.
DataMember
);
363
Assert.Equal("NoSuchValue", provider.
DataMember
);
382
Assert.Null(provider.
DataMember
);
387
Assert.Null(provider.
DataMember
);
400
Assert.Empty(provider.
DataMember
);
405
Assert.Empty(provider.
DataMember
);
473
Assert.Same(dataMember, provider.
DataMember
);
488
Assert.Equal("NoSuchValue", provider.
DataMember
);
503
Assert.Empty(provider.
DataMember
);
789
Assert.Same(newDataMember, provider.
DataMember
);
794
Assert.Same(newDataMember, provider.
DataMember
);
823
Assert.Same(newDataMember, provider.
DataMember
);
828
Assert.Same(newDataMember, provider.
DataMember
);
842
Assert.Equal("NoSuchValue", provider.
DataMember
);
847
Assert.Equal("NoSuchValue", provider.
DataMember
);