-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Constants.cs files from single Constants folder to appropriate r…
…ule folder. Update Namespace of moved Constants.cs files.
- Loading branch information
1 parent
eaff343
commit 1b6ba51
Showing
25 changed files
with
57 additions
and
57 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...nts/ClassicModelUsageAnalyzerConstants.cs → ...age/ClassicModelUsageAnalyzerConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Constants/ComparableOnObjectConstants.cs → ...rableTypes/ComparableOnObjectConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ers/Constants/ComparableTypesConstants.cs → ...mparableTypes/ComparableTypesConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ConstActualValueUsageAnalyzerConstants.cs → ...ConstActualValueUsageAnalyzerConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nts/ComparisonConstraintUsageConstants.cs → ...age/ComparisonConstraintUsageConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...onstants/EqualConstraintUsageConstants.cs → ...intUsage/EqualConstraintUsageConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ants/SomeItemsConstraintUsageConstants.cs → ...sage/SomeItemsConstraintUsageConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nstants/StringConstraintUsageConstants.cs → ...ntUsage/StringConstraintUsageConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ainsConstraintWrongActualTypeConstants.cs → ...ainsConstraintWrongActualTypeConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ants/EqualToIncompatibleTypesConstants.cs → ...ypes/EqualToIncompatibleTypesConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tants/IgnoreCaseUsageAnalyzerConstants.cs → ...Usage/IgnoreCaseUsageAnalyzerConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ers/Constants/MissingPropertyConstants.cs → ...ssingProperty/MissingPropertyConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nTestMethodAccessibilityLevelConstants.cs → ...nTestMethodAccessibilityLevelConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/NullConstraintUsageAnalyzerConstants.cs → ...e/NullConstraintUsageAnalyzerConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/ParallelizableUsageAnalyzerConstants.cs → ...e/ParallelizableUsageAnalyzerConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...meActualExpectedValueAnalyzerConstants.cs → ...meActualExpectedValueAnalyzerConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tants/SameAsIncompatibleTypesConstants.cs → ...Types/SameAsIncompatibleTypesConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Constants/SameAsOnValueTypesConstants.cs → ...ValueTypes/SameAsOnValueTypesConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ts/SomeItemsIncompatibleTypesConstants.cs → ...es/SomeItemsIncompatibleTypesConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ringConstraintWrongActualTypeConstants.cs → ...ringConstraintWrongActualTypeConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 33 additions & 33 deletions
66
...Constants/TestCaseSourceUsageConstants.cs → ...urceUsage/TestCaseSourceUsageConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
namespace NUnit.Analyzers.Constants | ||
{ | ||
internal static class TestCaseSourceUsageConstants | ||
{ | ||
internal const string ConsiderNameOfInsteadOfStringConstantAnalyzerTitle = "The TestCaseSource should use nameof operator to specify target"; | ||
internal const string ConsiderNameOfInsteadOfStringConstantMessage = "Consider using nameof({0}) instead of \"{1}\""; | ||
internal const string ConsiderNameOfInsteadOfStringConstantDescription = "The TestCaseSource should use nameof operator to specify target."; | ||
|
||
internal const string SourceTypeNotIEnumerableTitle = "The source type does not implement IEnumerable"; | ||
internal const string SourceTypeNotIEnumerableMessage = "The source type '{0}' does not implement IEnumerable"; | ||
internal const string SourceTypeNotIEnumerableDescription = "The source type must implement IEnumerable in order to provide test cases."; | ||
|
||
internal const string SourceTypeNoDefaultConstructorTitle = "The source type does not have a default constructor"; | ||
internal const string SourceTypeNoDefaultConstructorMessage = "The source type '{0}' does not have a default constructor"; | ||
internal const string SourceTypeNoDefaultConstructorDescription = "The source type must have a default constructor in order to provide test cases."; | ||
|
||
internal const string SourceIsNotStaticTitle = "The specified source is not static"; | ||
internal const string SourceIsNotStaticMessage = "The specified source '{0}' is not static"; | ||
internal const string SourceIsNotStaticDescription = "The specified source must be static."; | ||
|
||
internal const string MismatchInNumberOfParametersTitle = "The number of parameters provided by the TestCaseSource does not match the number of parameters in the target method"; | ||
internal const string MismatchInNumberOfParametersMessage = "The TestCaseSource provides '{0}' parameter(s), but the target method expects '{1}' parameter(s)"; | ||
internal const string MismatchInNumberOfParametersDescription = "The number of parameters provided by the TestCaseSource must match the number of parameters in the target method."; | ||
|
||
internal const string SourceDoesNotReturnIEnumerableTitle = "The source specified by the TestCaseSource does not return an IEnumerable or a type that implements IEnumerable"; | ||
internal const string SourceDoesNotReturnIEnumerableMessage = "The TestCaseSource does not return an IEnumerable or a type that implements IEnumerable. Instead it returns a '{0}'."; | ||
internal const string SourceDoesNotReturnIEnumerableDescription = "The source specified by the TestCaseSource must return an IEnumerable or a type that implements IEnumerable."; | ||
|
||
internal const string TestCaseSourceSuppliesParametersTitle = "The TestCaseSource provides parameters to a source - field or property - that expects no parameters"; | ||
internal const string TestCaseSourceSuppliesParametersMessage = "The TestCaseSource provides '{0}' parameter(s), but {1} cannot take parameters"; | ||
internal const string TestCaseSourceSuppliesParametersDescription = "The TestCaseSource must not provide any parameters when the source is a field or a property."; | ||
} | ||
} | ||
namespace NUnit.Analyzers.TestCaseSourceUsage | ||
{ | ||
internal static class TestCaseSourceUsageConstants | ||
{ | ||
internal const string ConsiderNameOfInsteadOfStringConstantAnalyzerTitle = "The TestCaseSource should use nameof operator to specify target"; | ||
internal const string ConsiderNameOfInsteadOfStringConstantMessage = "Consider using nameof({0}) instead of \"{1}\""; | ||
internal const string ConsiderNameOfInsteadOfStringConstantDescription = "The TestCaseSource should use nameof operator to specify target."; | ||
|
||
internal const string SourceTypeNotIEnumerableTitle = "The source type does not implement IEnumerable"; | ||
internal const string SourceTypeNotIEnumerableMessage = "The source type '{0}' does not implement IEnumerable"; | ||
internal const string SourceTypeNotIEnumerableDescription = "The source type must implement IEnumerable in order to provide test cases."; | ||
|
||
internal const string SourceTypeNoDefaultConstructorTitle = "The source type does not have a default constructor"; | ||
internal const string SourceTypeNoDefaultConstructorMessage = "The source type '{0}' does not have a default constructor"; | ||
internal const string SourceTypeNoDefaultConstructorDescription = "The source type must have a default constructor in order to provide test cases."; | ||
|
||
internal const string SourceIsNotStaticTitle = "The specified source is not static"; | ||
internal const string SourceIsNotStaticMessage = "The specified source '{0}' is not static"; | ||
internal const string SourceIsNotStaticDescription = "The specified source must be static."; | ||
|
||
internal const string MismatchInNumberOfParametersTitle = "The number of parameters provided by the TestCaseSource does not match the number of parameters in the target method"; | ||
internal const string MismatchInNumberOfParametersMessage = "The TestCaseSource provides '{0}' parameter(s), but the target method expects '{1}' parameter(s)"; | ||
internal const string MismatchInNumberOfParametersDescription = "The number of parameters provided by the TestCaseSource must match the number of parameters in the target method."; | ||
|
||
internal const string SourceDoesNotReturnIEnumerableTitle = "The source specified by the TestCaseSource does not return an IEnumerable or a type that implements IEnumerable"; | ||
internal const string SourceDoesNotReturnIEnumerableMessage = "The TestCaseSource does not return an IEnumerable or a type that implements IEnumerable. Instead it returns a '{0}'."; | ||
internal const string SourceDoesNotReturnIEnumerableDescription = "The source specified by the TestCaseSource must return an IEnumerable or a type that implements IEnumerable."; | ||
|
||
internal const string TestCaseSourceSuppliesParametersTitle = "The TestCaseSource provides parameters to a source - field or property - that expects no parameters"; | ||
internal const string TestCaseSourceSuppliesParametersMessage = "The TestCaseSource provides '{0}' parameter(s), but {1} cannot take parameters"; | ||
internal const string TestCaseSourceSuppliesParametersDescription = "The TestCaseSource must not provide any parameters when the source is a field or a property."; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...nstants/TestCaseUsageAnalyzerConstants.cs → ...seUsage/TestCaseUsageAnalyzerConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../TestMethodAccessibilityLevelConstants.cs → .../TestMethodAccessibilityLevelConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tants/TestMethodUsageAnalyzerConstants.cs → ...Usage/TestMethodUsageAnalyzerConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rs/Constants/ValueSourceUsageConstants.cs → ...eSourceUsage/ValueSourceUsageConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters