6 instantiations of TestClass
System.Xaml.Tests (6)
System\Xaml\Schema\XamlMemberInvokerTests.cs (6)
70
var instance = new
TestClass
{ Property = 1 };
80
var instance = new
TestClass
();
97
var instance = new
TestClass
();
114
var instance = new
TestClass
();
125
var instance = new
TestClass
();
143
var instance = new
TestClass
();
29 references to TestClass
System.Xaml.Tests (29)
System\Xaml\Schema\XamlMemberInvokerTests.cs (29)
34
MethodInfo getter = typeof(
TestClass
).GetMethod(nameof(
TestClass
.StaticGetter))!;
35
MethodInfo setter = typeof(
TestClass
).GetMethod(nameof(
TestClass
.StaticSetter))!;
70
var
instance = new TestClass { Property = 1 };
71
PropertyInfo property = typeof(
TestClass
).GetProperty(nameof(
TestClass
.Property))!;
80
var
instance = new TestClass();
81
MethodInfo getter = typeof(
TestClass
).GetMethod(nameof(
TestClass
.StaticGetter))!;
82
MethodInfo setter = typeof(
TestClass
).GetMethod(nameof(
TestClass
.StaticSetter))!;
97
var
instance = new TestClass();
98
MethodInfo setter = typeof(
TestClass
).GetMethod(nameof(
TestClass
.StaticSetter))!;
114
var
instance = new TestClass();
115
PropertyInfo property = typeof(
TestClass
).GetProperty(nameof(
TestClass
.Property))!;
125
var
instance = new TestClass();
126
MethodInfo getter = typeof(
TestClass
).GetMethod(nameof(
TestClass
.StaticGetter))!;
127
MethodInfo setter = typeof(
TestClass
).GetMethod(nameof(
TestClass
.StaticSetter))!;
131
Assert.Equal(1,
TestClass
.SetStaticProperty);
143
var
instance = new TestClass();
144
MethodInfo getter = typeof(
TestClass
).GetMethod(nameof(
TestClass
.StaticGetter))!;
245
public static int StaticGetter(
TestClass
instance) => GetStaticProperty;
246
public static int StaticSetter(
TestClass
instance, int value) => SetStaticProperty = value;