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 @@ -238,8 +238,7 @@ public static AppxManifestInfo ReadFromManifest(Stream manifestStream)
? null
: new AppxApplicationInfo(applicationId, executable, $"{packageFamilyName}!{applicationId}");
})
.Where(static application => application is not null)
.Select(static application => application!)
.OfType<AppxApplicationInfo>()
.ToList()
?? [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ public override async Task<TestResult[]> ExecuteAsync(ITestMethod testMethod)
}

private static Type? GetApplicationType(Assembly assembly)
{
WinUITestTargetAttribute? attribute = assembly.GetCustomAttribute<WinUITestTargetAttribute>();
return attribute == null || attribute.ApplicationType == null ? null : attribute.ApplicationType;
}
=> assembly.GetCustomAttribute<WinUITestTargetAttribute>()?.ApplicationType;

private static DispatcherQueue? GetApplicationDispatcherQueue(Assembly assembly)
{
Expand Down