Skip to content

FlyBy typo fix in FeatureCollectionExtensions.cs #55217

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

Merged
merged 2 commits into from
Apr 22, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Extensions/Features/src/FeatureCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Http.Features;
public static class FeatureCollectionExtensions
{
/// <summary>
/// Retrives the requested feature from the collection.
/// Retrieves the requested feature from the collection.
/// Throws an <see cref="InvalidOperationException"/> if the feature is not present.
/// </summary>
/// <param name="featureCollection">The <see cref="IFeatureCollection"/>.</param>
Expand All @@ -27,7 +27,7 @@ public static TFeature GetRequiredFeature<TFeature>(this IFeatureCollection feat
}

/// <summary>
/// Retrives the requested feature from the collection.
/// Retrieves the requested feature from the collection.
/// Throws an <see cref="InvalidOperationException"/> if the feature is not present.
/// </summary>
/// <param name="featureCollection">feature collection</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ public void AddedFeatureGetsReturned()
features.Set<IThing>(thing);

// Act
var retrivedThing = features.GetRequiredFeature<IThing>();
var retrievedThing = features.GetRequiredFeature<IThing>();

// Assert
Assert.NotNull(retrivedThing);
Assert.Equal(retrivedThing, thing);
Assert.NotNull(retrievedThing);
Assert.Equal(retrievedThing, thing);
}

[Fact]
public void ExceptionThrowned_WhenAskedForUnknownFeature()
public void ExceptionThrown_WhenAskedForUnknownFeature()
{
// Arrange
var features = new FeatureCollection();
Expand Down
Loading