Browse Source

FlyBy typo fix in FeatureCollectionExtensions.cs (#55217)

* FlyBy typo fix in FeatureCollectionExtensions.cs

* Fixed more typos in vicinity
Michael Staib 1 year ago
parent
commit
473da40645

+ 2 - 2
src/Extensions/Features/src/FeatureCollectionExtensions.cs

@@ -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>
@@ -27,7 +27,7 @@ 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">feature collection</param>

+ 4 - 4
src/Extensions/Features/test/FeatureCollectionExtensionsTests.cs

@@ -17,15 +17,15 @@ public class FeatureCollectionExtensionsTests
         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();