[InlineData("EvaluateBrowsableClass", "TestEvaluatePropertiesNone", "testPropertiesNone", 10)]
[InlineData("EvaluateBrowsableStruct", "TestEvaluateFieldsNone", "testFieldsNone", 10)]
[InlineData("EvaluateBrowsableStruct", "TestEvaluatePropertiesNone", "testPropertiesNone", 10)]
- [InlineData("EvaluateBrowsableStaticClass", "TestEvaluateFieldsNone", "testFieldsNone", 10)]
- [InlineData("EvaluateBrowsableStaticClass", "TestEvaluatePropertiesNone", "testPropertiesNone", 10)]
- [InlineData("EvaluateBrowsableCustomPropertiesClass", "TestEvaluatePropertiesNone", "testPropertiesNone", 5, true)]
+ [InlineData("EvaluateBrowsableClassStatic", "TestEvaluateFieldsNone", "testFieldsNone", 10)]
+ [InlineData("EvaluateBrowsableClassStatic", "TestEvaluatePropertiesNone", "testPropertiesNone", 10)]
+ [InlineData("EvaluateBrowsableStructStatic", "TestEvaluateFieldsNone", "testFieldsNone", 10)]
+ [InlineData("EvaluateBrowsableStructStatic", "TestEvaluatePropertiesNone", "testPropertiesNone", 10)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesClass", "TestEvaluatePropertiesNone", "testPropertiesNone", 5, true)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesStruct", "TestEvaluatePropertiesNone", "testPropertiesNone", 5, true)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesClassStatic", "TestEvaluatePropertiesNone", "testPropertiesNone", 5, true)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesStructStatic", "TestEvaluatePropertiesNone", "testPropertiesNone", 5, true)]
public async Task EvaluateBrowsableNone(
- string outerClassName, string className, string localVarName, int breakLine, bool isCustomGetter = false) => await CheckInspectLocalsAtBreakpointSite(
+ string outerClassName, string className, string localVarName, int breakLine, bool allMembersAreProperties = false) => await CheckInspectLocalsAtBreakpointSite(
$"DebuggerTests.{outerClassName}", "Evaluate", breakLine, $"DebuggerTests.{outerClassName}.Evaluate",
$"window.setTimeout(function() {{ invoke_static_method ('[debugger-test] DebuggerTests.{outerClassName}:Evaluate'); 1 }})",
wait_for_event_fn: async (pause_location) =>
await CheckValue(testNone, TObject($"DebuggerTests.{outerClassName}.{className}"), nameof(testNone));
var testNoneProps = await GetProperties(testNone["objectId"]?.Value<string>());
- if (isCustomGetter)
+ if (allMembersAreProperties)
await CheckProps(testNoneProps, new
{
list = TGetter("list", TObject("System.Collections.Generic.List<int>", description: "Count = 2")),
[InlineData("EvaluateBrowsableClass", "TestEvaluatePropertiesNever", "testPropertiesNever", 10)]
[InlineData("EvaluateBrowsableStruct", "TestEvaluateFieldsNever", "testFieldsNever", 10)]
[InlineData("EvaluateBrowsableStruct", "TestEvaluatePropertiesNever", "testPropertiesNever", 10)]
- [InlineData("EvaluateBrowsableStaticClass", "TestEvaluateFieldsNever", "testFieldsNever", 10)]
- [InlineData("EvaluateBrowsableStaticClass", "TestEvaluatePropertiesNever", "testPropertiesNever", 10)]
- [InlineData("EvaluateBrowsableCustomPropertiesClass", "TestEvaluatePropertiesNever", "testPropertiesNever", 5)]
+ [InlineData("EvaluateBrowsableClassStatic", "TestEvaluateFieldsNever", "testFieldsNever", 10)]
+ [InlineData("EvaluateBrowsableClassStatic", "TestEvaluatePropertiesNever", "testPropertiesNever", 10)]
+ [InlineData("EvaluateBrowsableStructStatic", "TestEvaluateFieldsNever", "testFieldsNever", 10)]
+ [InlineData("EvaluateBrowsableStructStatic", "TestEvaluatePropertiesNever", "testPropertiesNever", 10)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesClass", "TestEvaluatePropertiesNever", "testPropertiesNever", 5)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesStruct", "TestEvaluatePropertiesNever", "testPropertiesNever", 5)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesClassStatic", "TestEvaluatePropertiesNever", "testPropertiesNever", 5)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesStructStatic", "TestEvaluatePropertiesNever", "testPropertiesNever", 5)]
public async Task EvaluateBrowsableNever(string outerClassName, string className, string localVarName, int breakLine) => await CheckInspectLocalsAtBreakpointSite(
$"DebuggerTests.{outerClassName}", "Evaluate", breakLine, $"DebuggerTests.{outerClassName}.Evaluate",
$"window.setTimeout(function() {{ invoke_static_method ('[debugger-test] DebuggerTests.{outerClassName}:Evaluate'); 1 }})",
[InlineData("EvaluateBrowsableClass", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 10)]
[InlineData("EvaluateBrowsableStruct", "TestEvaluateFieldsCollapsed", "testFieldsCollapsed", 10)]
[InlineData("EvaluateBrowsableStruct", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 10)]
- [InlineData("EvaluateBrowsableStaticClass", "TestEvaluateFieldsCollapsed", "testFieldsCollapsed", 10)]
- [InlineData("EvaluateBrowsableStaticClass", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 10)]
- [InlineData("EvaluateBrowsableCustomPropertiesClass", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 5, true)]
+ [InlineData("EvaluateBrowsableClassStatic", "TestEvaluateFieldsCollapsed", "testFieldsCollapsed", 10)]
+ [InlineData("EvaluateBrowsableClassStatic", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 10)]
+ [InlineData("EvaluateBrowsableStructStatic", "TestEvaluateFieldsCollapsed", "testFieldsCollapsed", 10)]
+ [InlineData("EvaluateBrowsableStructStatic", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 10)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesClass", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 5, true)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesStruct", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 5, true)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesClassStatic", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 5, true)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesStructStatic", "TestEvaluatePropertiesCollapsed", "testPropertiesCollapsed", 5, true)]
public async Task EvaluateBrowsableCollapsed(
- string outerClassName, string className, string localVarName, int breakLine, bool isCustomGetter = false) => await CheckInspectLocalsAtBreakpointSite(
+ string outerClassName, string className, string localVarName, int breakLine, bool allMembersAreProperties = false) => await CheckInspectLocalsAtBreakpointSite(
$"DebuggerTests.{outerClassName}", "Evaluate", breakLine, $"DebuggerTests.{outerClassName}.Evaluate",
$"window.setTimeout(function() {{ invoke_static_method ('[debugger-test] DebuggerTests.{outerClassName}:Evaluate'); 1 }})",
wait_for_event_fn: async (pause_location) =>
var (testCollapsed, _) = await EvaluateOnCallFrame(id, localVarName);
await CheckValue(testCollapsed, TObject($"DebuggerTests.{outerClassName}.{className}"), nameof(testCollapsed));
var testCollapsedProps = await GetProperties(testCollapsed["objectId"]?.Value<string>());
- if (isCustomGetter)
+ if (allMembersAreProperties)
await CheckProps(testCollapsedProps, new
{
listCollapsed = TGetter("listCollapsed", TObject("System.Collections.Generic.List<int>", description: "Count = 2")),
[InlineData("EvaluateBrowsableClass", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 10)]
[InlineData("EvaluateBrowsableStruct", "TestEvaluateFieldsRootHidden", "testFieldsRootHidden", 10)]
[InlineData("EvaluateBrowsableStruct", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 10)]
- [InlineData("EvaluateBrowsableStaticClass", "TestEvaluateFieldsRootHidden", "testFieldsRootHidden", 10)]
- [InlineData("EvaluateBrowsableStaticClass", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 10)]
- [InlineData("EvaluateBrowsableCustomPropertiesClass", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 5)]
+ [InlineData("EvaluateBrowsableClassStatic", "TestEvaluateFieldsRootHidden", "testFieldsRootHidden", 10)]
+ [InlineData("EvaluateBrowsableClassStatic", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 10)]
+ [InlineData("EvaluateBrowsableStructStatic", "TestEvaluateFieldsRootHidden", "testFieldsRootHidden", 10)]
+ [InlineData("EvaluateBrowsableStructStatic", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 10)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesClass", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 5)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesStruct", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 5)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesClassStatic", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 5)]
+ [InlineData("EvaluateBrowsableNonAutoPropertiesStructStatic", "TestEvaluatePropertiesRootHidden", "testPropertiesRootHidden", 5)]
public async Task EvaluateBrowsableRootHidden(
string outerClassName, string className, string localVarName, int breakLine) => await CheckInspectLocalsAtBreakpointSite(
$"DebuggerTests.{outerClassName}", "Evaluate", breakLine, $"DebuggerTests.{outerClassName}.Evaluate",
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public SampleStructure sampleStructNever = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public SampleClass sampleClassNever = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleStructure sampleStructCollapsed = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleClass sampleClassCollapsed = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleStructure sampleStructCollapsed { get; set; }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleClass sampleClassCollapsed { get; set; }
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleStructure sampleStructRootHidden = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleClass sampleClassRootHidden = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleStructure sampleStructRootHidden { get; set; }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleClass sampleClassRootHidden { get; set; }
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public SampleStructure sampleStructNever = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public SampleClass sampleClassNever = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleStructure sampleStructCollapsed = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleClass sampleClassCollapsed = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleStructure sampleStructCollapsed { get; set; }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleClass sampleClassCollapsed { get; set; }
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleStructure sampleStructRootHidden = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleClass sampleClassRootHidden = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleStructure sampleStructRootHidden { get; set; }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleClass sampleClassRootHidden { get; set; }
}
}
- public static class EvaluateBrowsableStaticClass
+ public static class EvaluateBrowsableClassStatic
{
public class TestEvaluateFieldsNone
{
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public static SampleStructure sampleStructNever = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public static SampleClass sampleClassNever = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public static SampleStructure sampleStructNever { get; set; }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public static SampleClass sampleClassNever { get; set; }
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public static SampleStructure sampleStructCollapsed = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public static SampleClass sampleClassCollapsed = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public static SampleStructure sampleStructCollapsed { get; set; }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public static SampleClass sampleClassCollapsed { get; set; }
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public static SampleStructure sampleStructRootHidden = new();
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public static SampleClass sampleClassRootHidden = new();
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public static SampleStructure sampleStructRootHidden { get; set; }
-
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleClass sampleClassRootHidden { get; set; }
+
+ public TestEvaluatePropertiesRootHidden()
+ {
+ listRootHidden = new List<int>() { 1, 2 };
+ arrayRootHidden = new int[] { 11, 22 };
+ textRootHidden = "textRootHidden";
+ nullRootHidden = null;
+ valueTypeEnumRootHidden = new();
+ sampleStructRootHidden = new();
+ sampleClassRootHidden = new();
+ }
+ }
+
+ public static void Evaluate()
+ {
+ var testFieldsNone = new TestEvaluateFieldsNone();
+ var testFieldsNever = new TestEvaluateFieldsNever();
+ var testFieldsCollapsed = new TestEvaluateFieldsCollapsed();
+ var testFieldsRootHidden = new TestEvaluateFieldsRootHidden();
+
+ var testPropertiesNone = new TestEvaluatePropertiesNone();
+ var testPropertiesNever = new TestEvaluatePropertiesNever();
+ var testPropertiesCollapsed = new TestEvaluatePropertiesCollapsed();
+ var testPropertiesRootHidden = new TestEvaluatePropertiesRootHidden();
+ }
+ }
+
+ public static class EvaluateBrowsableStructStatic
+ {
+ public struct TestEvaluateFieldsNone
+ {
+
+ public static List<int> list = new List<int>() { 1, 2 };
+ public static int[] array = new int[] { 11, 22 };
+ public static string text = "text";
+
+ public static bool[] nullNone = null;
+ public static SampleEnum valueTypeEnum = new();
+ public static SampleStructure sampleStruct = new();
+ public static SampleClass sampleClass = new();
+
+ public TestEvaluateFieldsNone() { }
+ }
+
+ public struct TestEvaluatePropertiesNone
+ {
+ public static List<int> list { get; set; }
+ public static int[] array { get; set; }
+ public static string text { get; set; }
+ public static bool[] nullNone { get; set; }
+ public static SampleEnum valueTypeEnum { get; set; }
+ public static SampleStructure sampleStruct { get; set; }
+ public static SampleClass sampleClass { get; set; }
+
+ public TestEvaluatePropertiesNone()
+ {
+ list = new List<int>() { 1, 2 };
+ array = new int[] { 11, 22 };
+ text = "text";
+ nullNone = null;
+ valueTypeEnum = new();
+ sampleStruct = new();
+ sampleClass = new();
+ }
+ }
+
+ public struct TestEvaluateFieldsNever
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static List<int> listNever = new List<int>() { 1, 2 };
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static int[] arrayNever = new int[] { 11, 22 };
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static string textNever = "textNever";
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static bool[] nullNever = null;
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleEnum valueTypeEnumNever = new();
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleStructure sampleStructNever = new();
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleClass sampleClassNever = new();
+ public TestEvaluateFieldsNever() { }
+ }
+
+ public struct TestEvaluatePropertiesNever
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static List<int> listNever { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static int[] arrayNever { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static string textNever { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static bool[] nullNever { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleEnum valueTypeEnumNever { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleStructure sampleStructNever { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleClass sampleClassNever { get; set; }
+
+ public TestEvaluatePropertiesNever()
+ {
+ listNever = new List<int>() { 1, 2 };
+ arrayNever = new int[] { 11, 22 };
+ textNever = "textNever";
+ nullNever = null;
+ valueTypeEnumNever = new();
+ sampleStructNever = new();
+ sampleClassNever = new();
+ }
+ }
+
+ public struct TestEvaluateFieldsCollapsed
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static List<int> listCollapsed = new List<int>() { 1, 2 };
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static int[] arrayCollapsed = new int[] { 11, 22 };
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static string textCollapsed = "textCollapsed";
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static bool[] nullCollapsed = null;
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleEnum valueTypeEnumCollapsed = new();
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleStructure sampleStructCollapsed = new();
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleClass sampleClassCollapsed = new();
+ public TestEvaluateFieldsCollapsed() { }
+ }
+
+ public struct TestEvaluatePropertiesCollapsed
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static List<int> listCollapsed { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static int[] arrayCollapsed { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static string textCollapsed { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static bool[] nullCollapsed { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleEnum valueTypeEnumCollapsed { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleStructure sampleStructCollapsed { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleClass sampleClassCollapsed { get; set; }
+
+ public TestEvaluatePropertiesCollapsed()
+ {
+ listCollapsed = new List<int>() { 1, 2 };
+ arrayCollapsed = new int[] { 11, 22 };
+ textCollapsed = "textCollapsed";
+ nullCollapsed = null;
+ valueTypeEnumCollapsed = new();
+ sampleStructCollapsed = new();
+ sampleClassCollapsed = new();
+ }
+ }
+
+ public struct TestEvaluateFieldsRootHidden
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static List<int> listRootHidden = new List<int>() { 1, 2 };
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static int[] arrayRootHidden = new int[] { 11, 22 };
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static string textRootHidden = "textRootHidden";
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static bool[] nullRootHidden = null;
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleEnum valueTypeEnumRootHidden = new();
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleStructure sampleStructRootHidden = new();
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleClass sampleClassRootHidden = new();
+
+ public TestEvaluateFieldsRootHidden() { }
+ }
+
+ public struct TestEvaluatePropertiesRootHidden
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static List<int> listRootHidden { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static int[] arrayRootHidden { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static string textRootHidden { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static bool[] nullRootHidden { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleEnum valueTypeEnumRootHidden { get; set; }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleStructure sampleStructRootHidden { get; set; }
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public static SampleClass sampleClassRootHidden { get; set; }
}
}
- public static class EvaluateBrowsableCustomPropertiesClass
+ public static class EvaluateBrowsableNonAutoPropertiesClass
{
public class TestEvaluatePropertiesNone
{
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public SampleStructure sampleStructNever { get { return new(); } }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public SampleClass sampleClassNever { get { return new(); } }
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleStructure sampleStructCollapsed { get { return new(); } }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
public SampleClass sampleClassCollapsed { get { return new(); } }
}
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleStructure sampleStructRootHidden { get { return new(); } }
-
+
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
public SampleClass sampleClassRootHidden { get { return new(); } }
}
}
}
+ public static class EvaluateBrowsableNonAutoPropertiesStruct
+ {
+ public struct TestEvaluatePropertiesNone
+ {
+ public List<int> list { get { return new List<int>() { 1, 2 }; } }
+ public int[] array { get { return new int[] { 11, 22 }; } }
+ public string text { get { return "text"; } }
+ public bool[] nullNone { get { return null; } }
+ public SampleEnum valueTypeEnum { get { return new(); } }
+ public SampleStructure sampleStruct { get { return new(); } }
+ public SampleClass sampleClass { get { return new(); } }
+ }
+
+ public struct TestEvaluatePropertiesNever
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public List<int> listNever { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public int[] arrayNever { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public string textNever { get { return "textNever"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public bool[] nullNever { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public SampleEnum valueTypeEnumNever { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public SampleStructure sampleStructNever { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public SampleClass sampleClassNever { get { return new(); } }
+ }
+
+ public struct TestEvaluatePropertiesCollapsed
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public List<int> listCollapsed { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public int[] arrayCollapsed { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public string textCollapsed { get { return "textCollapsed"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public bool[] nullCollapsed { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public SampleEnum valueTypeEnumCollapsed { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public SampleStructure sampleStructCollapsed { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public SampleClass sampleClassCollapsed { get { return new(); } }
+ }
+
+ public struct TestEvaluatePropertiesRootHidden
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public List<int> listRootHidden { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public int[] arrayRootHidden { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public string textRootHidden { get { return "textRootHidden"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public bool[] nullRootHidden { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public SampleEnum valueTypeEnumRootHidden { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public SampleStructure sampleStructRootHidden { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public SampleClass sampleClassRootHidden { get { return new(); } }
+ }
+
+ public static void Evaluate()
+ {
+ var testPropertiesNone = new TestEvaluatePropertiesNone();
+ var testPropertiesNever = new TestEvaluatePropertiesNever();
+ var testPropertiesCollapsed = new TestEvaluatePropertiesCollapsed();
+ var testPropertiesRootHidden = new TestEvaluatePropertiesRootHidden();
+ }
+ }
+
+ public static class EvaluateBrowsableNonAutoPropertiesClassStatic
+ {
+ public class TestEvaluatePropertiesNone
+ {
+ public static List<int> list { get { return new List<int>() { 1, 2 }; } }
+ public static int[] array { get { return new int[] { 11, 22 }; } }
+ public static string text { get { return "text"; } }
+ public static bool[] nullNone { get { return null; } }
+ public static SampleEnum valueTypeEnum { get { return new(); } }
+ public static SampleStructure sampleStruct { get { return new(); } }
+ public static SampleClass sampleClass { get { return new(); } }
+ }
+
+ public class TestEvaluatePropertiesNever
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static List<int> listNever { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static int[] arrayNever { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static string textNever { get { return "textNever"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static bool[] nullNever { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleEnum valueTypeEnumNever { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleStructure sampleStructNever { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleClass sampleClassNever { get { return new(); } }
+ }
+
+ public class TestEvaluatePropertiesCollapsed
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static List<int> listCollapsed { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static int[] arrayCollapsed { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static string textCollapsed { get { return "textCollapsed"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static bool[] nullCollapsed { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public SampleEnum valueTypeEnumCollapsed { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleStructure sampleStructCollapsed { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleClass sampleClassCollapsed { get { return new(); } }
+ }
+
+ public class TestEvaluatePropertiesRootHidden
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static List<int> listRootHidden { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static int[] arrayRootHidden { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static string textRootHidden { get { return "textRootHidden"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static bool[] nullRootHidden { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleEnum valueTypeEnumRootHidden { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleStructure sampleStructRootHidden { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleClass sampleClassRootHidden { get { return new(); } }
+ }
+
+ public static void Evaluate()
+ {
+ var testPropertiesNone = new TestEvaluatePropertiesNone();
+ var testPropertiesNever = new TestEvaluatePropertiesNever();
+ var testPropertiesCollapsed = new TestEvaluatePropertiesCollapsed();
+ var testPropertiesRootHidden = new TestEvaluatePropertiesRootHidden();
+ }
+ }
+
+ public static class EvaluateBrowsableNonAutoPropertiesStructStatic
+ {
+ public struct TestEvaluatePropertiesNone
+ {
+ public static List<int> list { get { return new List<int>() { 1, 2 }; } }
+ public static int[] array { get { return new int[] { 11, 22 }; } }
+ public static string text { get { return "text"; } }
+ public static bool[] nullNone { get { return null; } }
+ public static SampleEnum valueTypeEnum { get { return new(); } }
+ public static SampleStructure sampleStruct { get { return new(); } }
+ public static SampleClass sampleClass { get { return new(); } }
+ }
+
+ public struct TestEvaluatePropertiesNever
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static List<int> listNever { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static int[] arrayNever { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static string textNever { get { return "textNever"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static bool[] nullNever { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleEnum valueTypeEnumNever { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleStructure sampleStructNever { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
+ public static SampleClass sampleClassNever { get { return new(); } }
+ }
+
+ public struct TestEvaluatePropertiesCollapsed
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static List<int> listCollapsed { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static int[] arrayCollapsed { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static string textCollapsed { get { return "textCollapsed"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static bool[] nullCollapsed { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleEnum valueTypeEnumCollapsed { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public SampleStructure sampleStructCollapsed { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Collapsed)]
+ public static SampleClass sampleClassCollapsed { get { return new(); } }
+ }
+
+ public struct TestEvaluatePropertiesRootHidden
+ {
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static List<int> listRootHidden { get { return new List<int>() { 1, 2 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static int[] arrayRootHidden { get { return new int[] { 11, 22 }; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static string textRootHidden { get { return "textRootHidden"; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static bool[] nullRootHidden { get { return null; } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleEnum valueTypeEnumRootHidden { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleStructure sampleStructRootHidden { get { return new(); } }
+
+ [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)]
+ public static SampleClass sampleClassRootHidden { get { return new(); } }
+ }
+
+ public static void Evaluate()
+ {
+ var testPropertiesNone = new TestEvaluatePropertiesNone();
+ var testPropertiesNever = new TestEvaluatePropertiesNever();
+ var testPropertiesCollapsed = new TestEvaluatePropertiesCollapsed();
+ var testPropertiesRootHidden = new TestEvaluatePropertiesRootHidden();
+ }
+ }
+
public static class StructureGetters
{
public struct Point
}
}
}
-