Assert.Equal("(o) as C",fullNameProvider.GetClrCastExpression(inspectionContext,"o",type,null,DkmClrCastExpressionOptions.ParenthesizeArgument|DkmClrCastExpressionOptions.ConditionalCast));
Assert.Equal("(o as C)",fullNameProvider.GetClrCastExpression(inspectionContext,"o",type,null,DkmClrCastExpressionOptions.ParenthesizeEntireExpression|DkmClrCastExpressionOptions.ConditionalCast));
Assert.Equal("((o) as C)",fullNameProvider.GetClrCastExpression(inspectionContext,"o",type,null,DkmClrCastExpressionOptions.ParenthesizeEntireExpression|DkmClrCastExpressionOptions.ParenthesizeArgument|DkmClrCastExpressionOptions.ConditionalCast));
// Some of the same tests with "..." as the expression ("..." is used
// by the debugger when the expression cannot be determined).
Assert.Equal("... as C",fullNameProvider.GetClrCastExpression(inspectionContext,"...",type,null,DkmClrCastExpressionOptions.ConditionalCast));
Assert.Equal("(... as C)",fullNameProvider.GetClrCastExpression(inspectionContext,"...",type,null,DkmClrCastExpressionOptions.ParenthesizeEntireExpression|DkmClrCastExpressionOptions.ConditionalCast));
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.