diff --git a/PrimaryParameter.Tests/PrimaryParameterSnapshotTests.cs b/PrimaryParameter.Tests/PrimaryParameterSnapshotTests.cs
index e7eaade..70ad603 100644
--- a/PrimaryParameter.Tests/PrimaryParameterSnapshotTests.cs
+++ b/PrimaryParameter.Tests/PrimaryParameterSnapshotTests.cs
@@ -263,4 +263,17 @@ public class C([DoNotUse] int i);
// Pass the source code to our helper and snapshot test the output
return TestHelper.Verify(source);
}
+
+ [Fact]
+ public Task GenerateSingleLineDocumentation()
+ {
+ // The source code to test
+ var source = """
+ using PrimaryParameter.SG;
+ public class C([Property(Summary = "Documentation")] int i);
+ """;
+
+ // Pass the source code to our helper and snapshot test the output
+ return TestHelper.Verify(source);
+ }
}
diff --git a/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/DoNotUseAttribute.g.verified.cs b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/DoNotUseAttribute.g.verified.cs
new file mode 100644
index 0000000..5595176
--- /dev/null
+++ b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/DoNotUseAttribute.g.verified.cs
@@ -0,0 +1,12 @@
+//HintName: DoNotUseAttribute.g.cs
+#pragma warning disable
+//
+using global::System;
+namespace PrimaryParameter.SG
+{
+ [AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)]
+ sealed class DoNotUseAttribute : Attribute
+ {
+ public bool AllowInMemberInit { get; init; }
+ }
+}
diff --git a/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/FaustVX.PrimaryParameter.SG.g.verified.cs b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/FaustVX.PrimaryParameter.SG.g.verified.cs
new file mode 100644
index 0000000..e9a028f
--- /dev/null
+++ b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/FaustVX.PrimaryParameter.SG.g.verified.cs
@@ -0,0 +1,10 @@
+//HintName: FaustVX.PrimaryParameter.SG.g.cs
+#pragma warning disable
+//
+partial class C
+{
+ ///
+ /// Documentation
+ ///
+ public int I { get; } = i;
+}
diff --git a/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/FieldAttribute.g.verified.cs b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/FieldAttribute.g.verified.cs
new file mode 100644
index 0000000..b1907d8
--- /dev/null
+++ b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/FieldAttribute.g.verified.cs
@@ -0,0 +1,17 @@
+//HintName: FieldAttribute.g.cs
+#pragma warning disable
+//
+using global::System;
+namespace PrimaryParameter.SG
+{
+ [AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)]
+ sealed class FieldAttribute : Attribute
+ {
+ public string Name { get; init; }
+ public string AssignFormat { get; init; }
+ public Type Type { get; init; }
+ public bool IsReadonly { get; init; }
+ public string Scope { get; init; }
+ public string Summary { get; init; }
+ }
+}
diff --git a/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/PropertyAttribute.g.verified.cs b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/PropertyAttribute.g.verified.cs
new file mode 100644
index 0000000..3214fe5
--- /dev/null
+++ b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/PropertyAttribute.g.verified.cs
@@ -0,0 +1,17 @@
+//HintName: PropertyAttribute.g.cs
+#pragma warning disable
+//
+using global::System;
+namespace PrimaryParameter.SG
+{
+ [AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)]
+ sealed class PropertyAttribute : Attribute
+ {
+ public string Name { get; init; }
+ public string AssignFormat { get; init; }
+ public Type Type { get; init; }
+ public string Setter { get; init; }
+ public string Scope { get; init; }
+ public string Summary { get; init; }
+ }
+}
diff --git a/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/RefFieldAttribute.g.verified.cs b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/RefFieldAttribute.g.verified.cs
new file mode 100644
index 0000000..3802fa8
--- /dev/null
+++ b/PrimaryParameter.Tests/Verify/PrimaryParameterSnapshotTests.GenerateSingleLineDocumentation/RefFieldAttribute.g.verified.cs
@@ -0,0 +1,16 @@
+//HintName: RefFieldAttribute.g.cs
+#pragma warning disable
+//
+using global::System;
+namespace PrimaryParameter.SG
+{
+ [AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)]
+ sealed class RefFieldAttribute : Attribute
+ {
+ public string Name { get; init; }
+ public string Scope { get; init; }
+ public bool IsReadonlyRef { get; init; }
+ public bool IsRefReadonly { get; init; }
+ public string Summary { get; init; }
+ }
+}