提交 2d29bb39 编写于 作者: C Cyrus Najmabadi

Add tests

上级 7d0e777c
......@@ -528,6 +528,38 @@ void M(string someValue)
{
_ = $""prefix {someValue.PadLeft(3),3} suffix"";
}
}");
}
[Fact]
public async Task PadLeftThenPadRight_WithoutAlignment()
{
await TestInRegularAndScriptAsync(
@"class C
{
void M(string someValue)
{
_ = $""prefix {someValue.PadLeft(3){|Unnecessary:[||].PadRight(|}3{|Unnecessary:)|}} suffix"";
}
}", @"class C
{
void M(string someValue)
{
_ = $""prefix {someValue.PadLeft(3),3} suffix"";
}
}");
}
[Fact]
public async Task PadLeftThenPadRight_WithAlignment()
{
await TestMissingAsync(
@"class C
{
void M(string someValue)
{
_ = $""prefix {someValue.PadLeft(3)[||].PadRight(3),3} suffix"";
}
}");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册