Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #1774

Merged
merged 1 commit into from Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -177,7 +177,7 @@ private static MemberInfo GetMemberAccessTargetMember(Expression expression)
&& (unaryExpression.NodeType == ExpressionType.Convert))
{
// If the expression is a value type, then accessing it will involve an
// implicit boxing convertion to type object that we need to ignore.
// implicit boxing conversion to type object that we need to ignore.
expression = unaryExpression.Operand;
}

Expand Down
Expand Up @@ -22,7 +22,7 @@ protected SelectMemberByPathSelectionRule(string selectedPath)
string currentPath = currentNode.PathAndName;

// If we're part of a collection comparison, the selected path will not include an index,
// so we need to to remove it from the current node as well.
// so we need to remove it from the current node as well.
if (!ContainsIndexingQualifiers(selectedPath))
{
currentPath = RemoveIndexQualifiers(currentPath);
Expand Down
2 changes: 1 addition & 1 deletion Src/FluentAssertions/Execution/IAssertionScope.cs
Expand Up @@ -44,7 +44,7 @@ public interface IAssertionScope : IDisposable
Continuation FailWith(string message);

/// <summary>
/// Sets the failure message when the assertion is not met, or completes the failure message set to aprior call to
/// Sets the failure message when the assertion is not met, or completes the failure message set to a prior call to
/// <see cref="AssertionScope.WithExpectation"/>.
/// <paramref name="failReasonFunc"/> will not be called unless the assertion is not met.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions Tests/FluentAssertions.Specs/Execution/GivenSelectorSpecs.cs
Expand Up @@ -10,7 +10,7 @@ public class GivenSelectorSpecs
[Fact]
public void A_consecutive_subject_should_be_selected()
{
// Arange
// Arrange
string value = string.Empty;

// Act
Expand All @@ -26,7 +26,7 @@ public void A_consecutive_subject_should_be_selected()
[Fact]
public void After_a_failed_condition_a_consecutive_subject_should_be_ignored()
{
// Arange
// Arrange
string value = string.Empty;

// Act
Expand Down
Expand Up @@ -63,7 +63,7 @@ public void When_subject_is_null_not_reference_should_fail()
Assembly assemblyB = FindAssembly.Containing<ClassB>();

// Act
Action act = () => assemblyA.Should().NotReference(assemblyB, "we want to to test the failure {0}", "message");
Action act = () => assemblyA.Should().NotReference(assemblyB, "we want to test the failure {0}", "message");

// Assert
act.Should().Throw<XunitException>()
Expand Down Expand Up @@ -140,7 +140,7 @@ public void When_subject_is_null_reference_should_fail()
Assembly assemblyB = FindAssembly.Containing<ClassB>();

// Act
Action act = () => assemblyA.Should().Reference(assemblyB, "we want to to test the failure {0}", "message");
Action act = () => assemblyA.Should().Reference(assemblyB, "we want to test the failure {0}", "message");

// Assert
act.Should().Throw<XunitException>()
Expand Down Expand Up @@ -207,7 +207,7 @@ public void When_subject_is_null_define_type_should_fail()
// Act
Action act = () =>
thisAssembly.Should().DefineType(GetType().Namespace, "WellKnownClassWithAttribute",
"we want to to test the failure {0}", "message");
"we want to test the failure {0}", "message");

// Assert
act.Should().Throw<XunitException>()
Expand Down
1 change: 1 addition & 0 deletions docs/_pages/releases.md
Expand Up @@ -24,6 +24,7 @@ sidebar:
* Adding `ThatAreAsync()` and `ThatAreNotAsync()` for filtering in method assertions - [#1725](https://github.com/fluentassertions/fluentassertions/pull/1725)
* Adding `ThatAreVirtual()` and `ThatAreNotVirtual()` for filtering in method assertions - [#1744](https://github.com/fluentassertions/fluentassertions/pull/1744)
* Adding collection content to assertion messages for `HaveCountGreaterThan()`, `HaveCountGreaterThanOrEqualTo()`, `HaveCountLessThan()` and `HaveCountLessThanOrEqualTo()` - [#1760](https://github.com/fluentassertions/fluentassertions/pull/1760)

### Fixes
* Prevent multiple enumeration of `IEnumerable`s in parameter-less `ContainSingle()` - [#1753](https://github.com/fluentassertions/fluentassertions/pull/1753)
* Change `HaveCount()` assertion message order to state expected and actual collection count before dumping its content` - [#1760](https://github.com/fluentassertions/fluentassertions/pull/1760)
Expand Down