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