49 references to GetProperties
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (49)
Semantics\RecordTests.cs (49)
9744var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
9776var actualMembers = GetProperties(comp, "A.B").ToTestDisplayStrings();
9800AssertEx.Equal(new[] { "System.Type C1.EqualityContract { get; }" }, GetProperties(comp, "C1").ToTestDisplayStrings());
9813AssertEx.Equal(new[] { "System.Type C2.EqualityContract { get; }", "System.Object C2.P { get; init; }" }, GetProperties(comp, "C2").ToTestDisplayStrings());
9864var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
9895var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
9942var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
9977AssertEx.Equal(new[] { "System.Type B1.EqualityContract { get; }", "System.Int32 B1.X { get; init; }" }, GetProperties(comp, "B1").ToTestDisplayStrings());
9978AssertEx.Equal(new[] { "System.Type B2.EqualityContract { get; }", "System.Int32 B2.X { get; init; }" }, GetProperties(comp, "B2").ToTestDisplayStrings());
10015var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
10177var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
10214var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
10263var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
10290var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
10336var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
10383var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
10429var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
10490var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
10538var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
10587var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
10663var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
10695var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
10816var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
10840actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
10870AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10876AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }", "System.Object B.P { get; init; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10893var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
10924AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }", "System.Object B.P { get; init; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10925AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }", "System.Object C.P { get; init; }", "System.Object C.I.P { get; }" }, GetProperties(comp, "C").ToTestDisplayStrings());
10980var actualMembers = GetProperties(compB, "B").ToTestDisplayStrings();
11054var actualMembers = GetProperties(compB, "B").ToTestDisplayStrings();
11144var actualMembers = GetProperties(compB, "C").ToTestDisplayStrings();
11202AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
11254var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
11299AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
11333var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();
11547var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
11783var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
12103AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }", }, GetProperties(comp, "C").ToTestDisplayStrings());
12211AssertEx.Equal(new[] { "System.Type CA.EqualityContract { get; }", "System.Object CA.P { get; init; }" }, GetProperties(comp, "CA").ToTestDisplayStrings());
12212AssertEx.Equal(new[] { "System.Type CB.EqualityContract { get; }" }, GetProperties(comp, "CB").ToTestDisplayStrings());
12288var actualMembers = GetProperties(comp, "B");
12367var actualMembers = GetProperties(comp, "B");
12472var actualMembers = GetProperties(comp, "B");
12525Assert.Equal("System.Type! B.EqualityContract { get; }", GetProperties(comp, "B").Single().ToTestDisplayString(includeNonNullable: true));
12583AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
20699var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
20740var actualMembers = GetProperties(comp, "C").ToTestDisplayStrings();
20778var actualMembers = GetProperties(comp, "B").ToTestDisplayStrings();