Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jerviscui committed Jun 1, 2024
1 parent ca03429 commit 7b114df
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/Tests/CodeAnalysisTest/OrganizeMembersTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal void SetProps()
{
BoolProp = true;
PrivateProp = 1;
ProtectedProp = 2;
ProtectedProp = PrivateProp;
ProInternalProp = 3;
InternalProp = 4;
PublicProp = 5;
Expand Down Expand Up @@ -149,6 +149,22 @@ public void PublicMehtod()
PrivateMethod();
}

/// <summary>
/// protected mehtod.
/// </summary>
protected void ProtectedMehtod()
{
throw new NotSupportedException();
}

/// <summary>
/// protected internal mehtod.
/// </summary>
protected internal void ProInternalMethod()
{
throw new NotSupportedException();
}

/// <summary>
/// Public static mehtod.
/// </summary>
Expand All @@ -166,7 +182,6 @@ public static void PublicStaticMehtod()

public Task TaskMethod3Async(CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
throw new NotImplementedException();
}

Expand All @@ -184,7 +199,6 @@ Task IImplicit.TaskMethodAsync(CancellationToken cancellationToken)

public Task TaskMethod2Async(CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
throw new NotImplementedException();
}

Expand Down

0 comments on commit 7b114df

Please sign in to comment.