Skip to content

Commit

Permalink
Merge pull request #1774 from jnyrup/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
jnyrup committed Jan 12, 2022
2 parents 96a8fc7 + 7b09e10 commit f912dbe
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
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

0 comments on commit f912dbe

Please sign in to comment.