diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/AutoProperties.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/AutoProperties.cs index ff344e36d..785ffa4d8 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/AutoProperties.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/AutoProperties.cs @@ -2,6 +2,12 @@ using System; namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { + internal class AsymmetricAccessibility + { + public int PrivateSetter { get; private set; } + + public int ProtectedSetter { get; protected set; } + } internal class AutoProperties { #if CS110 @@ -38,10 +44,40 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty #endif } } + internal class AutoPropertiesBase + { + public virtual int VirtualProperty { get; set; } + + public virtual int VirtualGetterOnly { get; } + } + internal class AutoPropertiesDerived : AutoPropertiesBase + { + public override int VirtualProperty { get; set; } + + public sealed override int VirtualGetterOnly { get; } + } + internal class AutoPropertyExplicitImpl : IAutoProperty + { + int IAutoProperty.Property { get; set; } + } + internal class AutoPropertyImplicitImpl : IAutoProperty + { + public int Property { get; set; } + } + internal interface IAutoProperty + { + int Property { get; set; } + } #if !NET70 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)] internal sealed class RequiredMemberAttribute : Attribute { } #endif + internal struct StructAutoProperties + { + public int Property { get; set; } + + public int GetterOnly { get; } + } }