Skip to content

Commit

Permalink
Move Constants.cs files from single Constants folder to appropriate r…
Browse files Browse the repository at this point in the history
…ule folder.

Update Namespace of moved Constants.cs files.
  • Loading branch information
manfred-brands committed Jan 16, 2021
1 parent eaff343 commit 1b6ba51
Show file tree
Hide file tree
Showing 25 changed files with 57 additions and 57 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ClassicModelAssertUsage
{
internal static class ClassicModelUsageAnalyzerConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ComparableTypes
{
internal static class ComparableOnObjectConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ComparableTypes
{
internal static class ComparableTypesConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ConstActualValueUsage
{
internal static class ConstActualValueUsageAnalyzerConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ConstraintUsage
{
internal static class ComparisonConstraintUsageConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ConstraintUsage
{
internal static class EqualConstraintUsageConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ConstraintUsage
{
internal static class SomeItemsConstraintUsageConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ConstraintUsage
{
internal static class StringConstraintUsageConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ContainsConstraintWrongActualType
{
internal static class ContainsConstraintWrongActualTypeConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.EqualToIncompatibleTypes
{
internal static class EqualToIncompatibleTypesConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.IgnoreCaseUsage
{
internal static class IgnoreCaseUsageAnalyzerConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers
namespace NUnit.Analyzers.MissingProperty
{
internal static class MissingPropertyConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.NonTestMethodAccessibilityLevel
{
internal static class NonTestMethodAccessibilityLevelConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.NullConstraintUsage
{
internal static class NullConstraintUsageAnalyzerConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ParallelizableUsage
{
internal class ParallelizableUsageAnalyzerConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.SameActualExpectedValue
{
internal static class SameActualExpectedValueAnalyzerConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers
namespace NUnit.Analyzers.SameAsIncompatibleTypes
{
internal class SameAsIncompatibleTypesConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.SameAsOnValueTypes
{
internal static class SameAsOnValueTypesConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.SomeItemsIncompatibleTypes
{
internal static class SomeItemsIncompatibleTypesConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.StringConstraintWrongActualType
{
internal static class StringConstraintWrongActualTypeConstants
{
Expand Down
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.";
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.TestCaseUsage
{
internal static class TestCaseUsageAnalyzerConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.TestMethodAccessibilityLevel
{
internal static class TestMethodAccessibilityLevelConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.TestMethodUsage
{
internal static class TestMethodUsageAnalyzerConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NUnit.Analyzers.Constants
namespace NUnit.Analyzers.ValueSourceUsage
{
internal static class ValueSourceUsageConstants
{
Expand Down

0 comments on commit 1b6ba51

Please sign in to comment.