Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ private static void AddTestMethodIdentifier(TestNode testNode, TestMethod testMe
parameterTypes ??= [];

int lastIndexOfDot = managedType.LastIndexOf('.');
string @namespace = lastIndexOfDot == -1 ? string.Empty : managedType.Substring(0, lastIndexOfDot);
string typeName = lastIndexOfDot == -1 ? managedType : managedType.Substring(lastIndexOfDot + 1);
string @namespace = lastIndexOfDot == -1 ? string.Empty : managedType[..lastIndexOfDot];
string typeName = lastIndexOfDot == -1 ? managedType : managedType[(lastIndexOfDot + 1)..];

// AssemblyFullName and ReturnTypeFullName are not carried by the neutral model today; kept empty to match
// the current (bridge) behavior. Populating them is a follow-up enabled by this native path.
Expand Down Expand Up @@ -305,7 +305,7 @@ private static bool TryParseFullyQualifiedType(string fullyQualifiedName, [NotNu
return false;
}

fullyQualifiedType = fullyQualifiedName.Substring(0, lastDotIndexBeforeOpenBracket);
fullyQualifiedType = fullyQualifiedName[..lastDotIndexBeforeOpenBracket];
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private async Task ExecuteTestFromDataSourceAttributeAsync(List<TestResult> resu
try
{
IEnumerable<object>? dataRows = PlatformServiceProvider.Instance.TestDataSource.GetData(_testMethodInfo, _testContext);
if (dataRows == null)
if (dataRows is null)
{
var inconclusiveResult = new TestResult
{
Expand Down