40 references to Conversion
Microsoft.CodeAnalysis.CSharp (4)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (16)
CodeGen\CodeGenDeconstructTests.cs (16)
265Assert.Null(deconstructionInfo.Conversion);
271Assert.Equal(ConversionKind.ImplicitNumeric, nested[0].Conversion.Value.Kind);
275Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind);
283Assert.Equal(ConversionKind.UnsetConversionKind, defaultInfo.Conversion.Value.Kind);
314Assert.Equal(Conversion.UnsetConversion, deconstructionInfo.Conversion);
1115Assert.Null(deconstructionInfo.Conversion);
1121Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind);
1125Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind);
2295Assert.Null(deconstructionInfo.Conversion);
2301Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind);
2308Assert.Null(nested[1].Conversion);
2314Assert.Equal(ConversionKind.Identity, nested2[0].Conversion.Value.Kind);
2318Assert.Equal(ConversionKind.Identity, nested2[1].Conversion.Value.Kind);
4046Assert.Null(deconstructionInfo.Conversion);
4052Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind);
4056Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\DynamicTests.cs (20)
10042Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] });
10170Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] });
10298Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] });
10452Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] });
10586Assert.True(model.GetDeconstructionInfo(assignment) is { Method: not null, Conversion: null, Nested: [{ Method: null, Conversion: { IsBoxing: true }, Nested: [] }, _] });
10734Assert.True(model.GetDeconstructionInfo(assignment) is { Method: not null, Conversion: null, Nested: [{ Method: null, Conversion: { IsBoxing: true }, Nested: [] }, _] });
11004Assert.True(model.GetDeconstructionInfo(assignment) is { Method: not null, Conversion: null, Nested: [{ Method: null, Conversion: { IsBoxing: true }, Nested: [] }, _] });
11127Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] }, _] });
11211Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: not null, Conversion: null, Nested: [{ Method: null, Conversion: { IsBoxing: true }, Nested: [] }, _] }, _] });