You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pragma warning restore CS0618// Type or member is obsolete
80
80
@@ -86,16 +86,16 @@ public override void Validate()
86
86
{
87
87
base.Validate();
88
88
if(ChildContentisnull)
89
-
thrownewArgumentException($"No {nameof(ChildContent)} specified in the {GetType().Name} component.");
89
+
thrownewArgumentException($"No '{nameof(ChildContent)}' specified in the {GetType().Name} component.");
90
90
if(Testisnull&&TestAsyncisnull)
91
-
thrownewArgumentException($"No test/assertions provided to the {GetType().Name} component.");
91
+
thrownewArgumentException($"No test action provided via the '{nameof(Test)}' or '{nameof(TestAsync)}' parameters to the {GetType().Name} component.");
92
92
if(Testis{}&&TestAsyncis{})
93
-
thrownewArgumentException($"Only a single test method can be provided to the {GetType().Name} component at the time.");
93
+
thrownewArgumentException($"Only one of the '{nameof(Test)}' or '{nameof(TestAsync)}' actions can be provided to the {GetType().Name} component at the same time.");
94
94
#pragma warning disable CS0618// Type or member is obsolete
95
95
if(Testsis{})
96
-
thrownewArgumentException($"The user of the Tests parameter has been obsoleted, and any methods assigned to it will not longer be invoked.");
96
+
thrownewArgumentException($"The use of the '{nameof(Tests)}' parameter has been obsoleted, and any methods assigned to it will not longer be invoked.");
97
97
if(TestsAsyncis{})
98
-
thrownewArgumentException($"The user of the TestsAsync parameter has been obsoleted, and any methods assigned to it will not longer be invoked.");
98
+
thrownewArgumentException($"The use of the '{nameof(TestsAsync)}' parameter has been obsoleted, and any methods assigned to it will not longer be invoked.");
99
99
#pragma warning restore CS0618// Type or member is obsolete
0 commit comments