diff --git a/src/bunit.web/Extensions/StubComponentFactoryCollectionExtensions.cs b/src/bunit.web/Extensions/StubComponentFactoryCollectionExtensions.cs
index 9dac7e10f..4273402c4 100644
--- a/src/bunit.web/Extensions/StubComponentFactoryCollectionExtensions.cs
+++ b/src/bunit.web/Extensions/StubComponentFactoryCollectionExtensions.cs
@@ -164,10 +164,18 @@ public static ComponentFactoryCollection AddStub(
#if NET8_0_OR_GREATER
///
- /// TODO.
+ /// Marks a component as a stub component so that a stub gets generated for it. The stub has the same name as the component, but with the suffix "Stub" added.
///
-#pragma warning disable S2326
- public static ComponentFactoryCollection AddGeneratedStub(this ComponentFactoryCollection factories) where TComponent : IComponent
+ /// The type of component to generate a stub for.
+ ///
+ /// When ComponentFactories.AddGeneratedStub<MyButton>() is called, a stub component is generated for the component
+ /// with the name MyButtonStub. The stub component is added to the and can be used.
+ /// It can also be retrieved via `cut.FindComponent<MyButtonStub>()`.
+ /// This call does the same as ComponentFactories.Add<MyButton, MyButtonStub>().
+ ///
+#pragma warning disable S2326 // Unused type parameters should be removed - this is just the shape for the interceptor
+ public static ComponentFactoryCollection AddGeneratedStub(this ComponentFactoryCollection factories)
+ where TComponent : IComponent
#pragma warning restore S2326
{
if (factories is null)