1- using System ;
2- using NetArchTest . Functions ;
1+ using NetArchTest . Functions ;
32
43namespace NetArchTest . Rules
54{
@@ -12,7 +11,7 @@ public sealed partial class Condition
1211 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
1312 public ConditionList HaveName ( string name )
1413 {
15- AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveName ( context , inputTypes , name , true ) ) ;
14+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveName ( context , inputTypes , new [ ] { name } , true ) ) ;
1615 return CreateConditionList ( ) ;
1716 }
1817
@@ -23,7 +22,7 @@ public ConditionList HaveName(string name)
2322 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
2423 public ConditionList NotHaveName ( string name )
2524 {
26- AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveName ( context , inputTypes , name , false ) ) ;
25+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveName ( context , inputTypes , new [ ] { name } , false ) ) ;
2726 return CreateConditionList ( ) ;
2827 }
2928
@@ -56,7 +55,7 @@ public ConditionList NotHaveNameMatching(string pattern)
5655 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
5756 public ConditionList HaveNameStartingWith ( string start )
5857 {
59- AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameStartingWith ( context , inputTypes , start , true ) ) ;
58+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameStartingWith ( context , inputTypes , new [ ] { start } , true ) ) ;
6059 return CreateConditionList ( ) ;
6160 }
6261
@@ -67,7 +66,7 @@ public ConditionList HaveNameStartingWith(string start)
6766 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
6867 public ConditionList NotHaveNameStartingWith ( string start )
6968 {
70- AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameStartingWith ( context , inputTypes , start , false ) ) ;
69+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameStartingWith ( context , inputTypes , new [ ] { start } , false ) ) ;
7170 return CreateConditionList ( ) ;
7271 }
7372
@@ -78,7 +77,7 @@ public ConditionList NotHaveNameStartingWith(string start)
7877 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
7978 public ConditionList HaveNameEndingWith ( string end )
8079 {
81- AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameEndingWith ( context , inputTypes , end , true ) ) ;
80+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameEndingWith ( context , inputTypes , new [ ] { end } , true ) ) ;
8281 return CreateConditionList ( ) ;
8382 }
8483
@@ -89,19 +88,10 @@ public ConditionList HaveNameEndingWith(string end)
8988 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
9089 public ConditionList NotHaveNameEndingWith ( string end )
9190 {
92- AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameEndingWith ( context , inputTypes , end , false ) ) ;
91+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameEndingWith ( context , inputTypes , new [ ] { end } , false ) ) ;
9392 return CreateConditionList ( ) ;
9493 }
95-
96- /// <summary>
97- /// Selects types whose names do not end with the specified text.
98- /// </summary>
99- /// <param name="end">The text to match against.</param>
100- /// <param name="comparer">The string comparer.</param>
101- /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
102-
103-
104-
94+
10595
10696 /// <summary>
10797 /// Selects types that reside in a particular namespace.
0 commit comments