Skip to content

Commit

Permalink
Baleeted TypeDescriptionUtility, per @dennisdoomen.
Browse files Browse the repository at this point in the history
  • Loading branch information
logiclrd committed Mar 17, 2022
1 parent 2a4c162 commit d2076fd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 99 deletions.
20 changes: 0 additions & 20 deletions Src/FluentAssertions/Common/TypeDescriptionUtility.cs

This file was deleted.

Expand Up @@ -48,8 +48,8 @@ public static class DataColumnCollectionAssertionExtensions
.BecauseOf(because, becauseArgs)
.FailWith(
"Invalid expectation: Expected {context:column collection} to refer to an instance of " +
"DataColumnCollection{reason}, but found " +
TypeDescriptionUtility.GetDescriptionOfObjectType(assertion.Subject) + ".");
"DataColumnCollection{reason}, but found {0}.",
assertion.Subject);
}

return new AndConstraint<GenericCollectionAssertions<DataColumn>>(assertion);
Expand Down Expand Up @@ -89,8 +89,8 @@ public static class DataColumnCollectionAssertionExtensions
.BecauseOf(because, becauseArgs)
.FailWith(
"Invalid expectation: Expected {context:column collection} to refer to a different instance of " +
"DataColumnCollection{reason}, but found " +
TypeDescriptionUtility.GetDescriptionOfObjectType(assertion.Subject) + ".");
"DataColumnCollection{reason}, but found {0}.",
assertion.Subject);
}

return new AndConstraint<GenericCollectionAssertions<DataColumn>>(assertion);
Expand Down
8 changes: 4 additions & 4 deletions Src/FluentAssertions/DataRowCollectionAssertionExtensions.cs
Expand Up @@ -46,8 +46,8 @@ public static class DataRowCollectionAssertionExtensions
.BecauseOf(because, becauseArgs)
.FailWith(
"Invalid expectation: Expected {context:column collection} to refer to an instance of " +
"DataRowCollection{reason}, but found " +
TypeDescriptionUtility.GetDescriptionOfObjectType(assertion.Subject) + ".");
"DataRowCollection{reason}, but found {0}.",
assertion.Subject);
}

return new AndConstraint<GenericCollectionAssertions<DataRow>>(assertion);
Expand Down Expand Up @@ -84,8 +84,8 @@ public static class DataRowCollectionAssertionExtensions
.BecauseOf(because, becauseArgs)
.FailWith(
"Invalid expectation: Expected {context:column collection} to refer to a different instance of " +
"DataRowCollection{reason}, but found " +
TypeDescriptionUtility.GetDescriptionOfObjectType(assertion.Subject) + ".");
"DataRowCollection{reason}, but found {0}.",
assertion.Subject);
}

return new AndConstraint<GenericCollectionAssertions<DataRow>>(assertion);
Expand Down
Expand Up @@ -43,8 +43,8 @@ public static class DataTableCollectionAssertionExtensions
.BecauseOf(because, becauseArgs)
.FailWith(
"Invalid expectation: Expected {context:column collection} to refer to an instance of " +
"DataTableCollection{reason}, but found " +
TypeDescriptionUtility.GetDescriptionOfObjectType(assertion.Subject) + ".");
"DataTableCollection{reason}, but found {0}.",
assertion.Subject);
}

return new AndConstraint<GenericCollectionAssertions<DataTable>>(assertion);
Expand Down Expand Up @@ -81,8 +81,8 @@ public static class DataTableCollectionAssertionExtensions
.BecauseOf(because, becauseArgs)
.FailWith(
"Invalid expectation: Expected {context:column collection} to refer to a different instance of " +
"DataTableCollection{reason}, but found " +
TypeDescriptionUtility.GetDescriptionOfObjectType(assertion.Subject) + ".");
"DataTableCollection{reason}, but found {0}.",
assertion.Subject);
}

return new AndConstraint<GenericCollectionAssertions<DataTable>>(assertion);
Expand Down
67 changes: 0 additions & 67 deletions Tests/FluentAssertions.Specs/Common/TypeDescriptionUtilitySpecs.cs

This file was deleted.

0 comments on commit d2076fd

Please sign in to comment.