Skip to content

Commit

Permalink
SAVEPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisdoomen committed Jan 10, 2024
1 parent 6a3d548 commit 88d2950
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using JetBrains.Annotations;
using Xunit;
using Xunit.Sdk;

Expand Down Expand Up @@ -189,10 +190,13 @@ public void When_a_field_is_internal_and_it_should_be_included_it_should_fail_th

private class ClassWithInternalField
{
[UsedImplicitly]
public string PublicField;

[UsedImplicitly]
internal string InternalField;

[UsedImplicitly]
protected internal string ProtectedInternalField;
}

Expand Down Expand Up @@ -261,8 +265,10 @@ public ClassWithPrivateProtectedField(string name, int value)
this.value = value;
}

[UsedImplicitly]
public string Name;

[UsedImplicitly]
private protected int value;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.ComponentModel;
using JetBrains.Annotations;
using Xunit;
using Xunit.Sdk;

Expand Down Expand Up @@ -543,46 +544,60 @@ public void

private class ClassWithNonBrowsableMembers
{
[UsedImplicitly]
public int BrowsableField = -1;

[UsedImplicitly]
public int BrowsableProperty { get; set; }

[UsedImplicitly]
[EditorBrowsable(EditorBrowsableState.Always)]
public int ExplicitlyBrowsableField = -1;

[UsedImplicitly]
[EditorBrowsable(EditorBrowsableState.Always)]
public int ExplicitlyBrowsableProperty { get; set; }

[UsedImplicitly]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public int AdvancedBrowsableField = -1;

[UsedImplicitly]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public int AdvancedBrowsableProperty { get; set; }

[UsedImplicitly]
[EditorBrowsable(EditorBrowsableState.Never)]
public int NonBrowsableField = -1;

[UsedImplicitly]
[EditorBrowsable(EditorBrowsableState.Never)]
public int NonBrowsableProperty { get; set; }
}

private class ClassWhereMemberThatCouldBeNonBrowsableIsBrowsable
{
[UsedImplicitly]
public int BrowsableProperty { get; set; }

[UsedImplicitly]
public int FieldThatMightBeNonBrowsable = -1;

[UsedImplicitly]
public int PropertyThatMightBeNonBrowsable { get; set; }
}

private class ClassWhereMemberThatCouldBeNonBrowsableIsNonBrowsable
{
[UsedImplicitly]
public int BrowsableProperty { get; set; }

[EditorBrowsable(EditorBrowsableState.Never)]
[UsedImplicitly]
public int FieldThatMightBeNonBrowsable = -1;

[EditorBrowsable(EditorBrowsableState.Never)]
[UsedImplicitly]
public int PropertyThatMightBeNonBrowsable { get; set; }
}
}
Expand Down

0 comments on commit 88d2950

Please sign in to comment.