100 references to SetValue
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Routing.Abstractions (1)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.Build (2)
Microsoft.Build.Engine.OM.UnitTests (2)
Microsoft.Build.Engine.UnitTests (3)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (2)
Microsoft.Extensions.AI.Abstractions.Tests (8)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Extensions.Validation.GeneratorTests (35)
ValidationsGenerator.ValidatableType.cs (35)
101type.GetProperty("IntegerWithRange")?.SetValue(instance, 5);
120type.GetProperty("IntegerWithRangeAndDisplayName")?.SetValue(instance, 5);
139type.GetProperty("PropertyWithMemberAttributes")?.SetValue(instance, null);
159subType.GetType().GetProperty("RequiredProperty")?.SetValue(subType, "");
160subType.GetType().GetProperty("StringWithLength")?.SetValue(subType, "way-too-long");
161type.GetProperty("PropertyWithMemberAttributes")?.SetValue(instance, subType);
187inheritanceType.GetType().GetProperty("RequiredProperty")?.SetValue(inheritanceType, "");
188inheritanceType.GetType().GetProperty("StringWithLength")?.SetValue(inheritanceType, "way-too-long");
189inheritanceType.GetType().GetProperty("EmailString")?.SetValue(inheritanceType, "not-an-email");
190type.GetProperty("PropertyWithInheritance")?.SetValue(instance, inheritanceType);
224subType1.GetType().GetProperty("RequiredProperty")?.SetValue(subType1, "");
225subType1.GetType().GetProperty("StringWithLength")?.SetValue(subType1, "way-too-long");
229subType2.GetType().GetProperty("RequiredProperty")?.SetValue(subType2, "valid");
230subType2.GetType().GetProperty("StringWithLength")?.SetValue(subType2, "way-too-long");
234subType3.GetType().GetProperty("RequiredProperty")?.SetValue(subType3, "valid");
235subType3.GetType().GetProperty("StringWithLength")?.SetValue(subType3, "valid");
242type.GetProperty("ListOfSubTypes")?.SetValue(instance, subTypeList);
272type.GetProperty("IntegerWithCustomValidationAttribute")?.SetValue(instance, 5); // Odd number, should fail
291type.GetProperty("PropertyWithMultipleAttributes")?.SetValue(instance, 5);
318type.GetProperty("IntegerWithCustomValidationAttribute")?.SetValue(instance, 3); // Odd number should fail
339type.GetProperty("IntegerWithRange")?.SetValue(instance, 50);
340type.GetProperty("IntegerWithRangeAndDisplayName")?.SetValue(instance, 50);
344subType1.GetType().GetProperty("RequiredProperty")?.SetValue(subType1, "valid");
345subType1.GetType().GetProperty("StringWithLength")?.SetValue(subType1, "valid");
346type.GetProperty("PropertyWithMemberAttributes")?.SetValue(instance, subType1);
350subType2.GetType().GetProperty("RequiredProperty")?.SetValue(subType2, "valid");
351subType2.GetType().GetProperty("StringWithLength")?.SetValue(subType2, "valid");
352type.GetProperty("PropertyWithoutMemberAttributes")?.SetValue(instance, subType2);
356inheritanceType.GetType().GetProperty("RequiredProperty")?.SetValue(inheritanceType, "valid");
357inheritanceType.GetType().GetProperty("StringWithLength")?.SetValue(inheritanceType, "valid");
358inheritanceType.GetType().GetProperty("EmailString")?.SetValue(inheritanceType, "test@example.com");
359type.GetProperty("PropertyWithInheritance")?.SetValue(instance, inheritanceType);
363type.GetProperty("ListOfSubTypes")?.SetValue(instance, emptyList);
366type.GetProperty("IntegerWithCustomValidationAttribute")?.SetValue(instance, 2); // Even number should pass
367type.GetProperty("PropertyWithMultipleAttributes")?.SetValue(instance, 12);
Microsoft.Maui.Controls (3)
Microsoft.ML.Data (1)
Microsoft.ML.Tokenizers.Tests (2)
MSBuild (2)
PresentationFramework (1)
System.Composition.TypedParts (1)
System.Linq.Expressions (1)
System.Private.DataContractSerialization (1)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (2)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.Tests (12)