提交 0942ec44 编写于 作者: D David Barbet

Cleanup unnecessary cast tests and names.

上级 98694bbb
......@@ -2013,14 +2013,8 @@ private unsafe void CheckBounds(int byteCount)
[WorkItem(26640, "https://github.com/dotnet/roslyn/issues/26640")]
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsRemoveUnnecessaryCast)]
public async Task DontRemoveNumericImplicitConstantCastInObjectCast()
{
//return b ? [|(byte)1 : (byte)0|];
//return [|(byte)1|];
/*int tr = 1;
int fr = 0;
return [|b ? (byte)tr : (byte)fr|];
*/
public async Task DontRemoveCastToByteFromIntInConditionalExpression()
{
await TestMissingInRegularAndScriptAsync(
@"class C
{
......@@ -2033,7 +2027,7 @@ object M1(bool b)
[WorkItem(26640, "https://github.com/dotnet/roslyn/issues/26640")]
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsRemoveUnnecessaryCast)]
public async Task DontRemoveNumericImplicitNumericCastInObjectCast()
public async Task DontRemoveCastToDoubleFromIntInConditionalExpression()
{
await TestMissingInRegularAndScriptAsync(
@"class C
......@@ -2047,7 +2041,7 @@ object M1(bool b)
[WorkItem(26640, "https://github.com/dotnet/roslyn/issues/26640")]
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsRemoveUnnecessaryCast)]
public async Task DontRemoveNumericImplicitCharCastWithSameReturnTypeInObjectCast()
public async Task DontRemoveCastToUIntFromCharInConditionalExpression()
{
await TestMissingInRegularAndScriptAsync(
@"class C
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册