fix(launcher): close Campaign LA LA1 review findings
This commit is contained in:
parent
4edc122085
commit
d511e4c348
12 changed files with 413 additions and 65 deletions
|
|
@ -87,6 +87,27 @@ public sealed class LinuxPlatformBoundaryTests
|
|||
Assert.Empty(offenders);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RuntimePlatformGuardHasOneDefinitionAndOneApprovedConsumer()
|
||||
{
|
||||
string app = AppSourceRoot();
|
||||
string[] files = Directory
|
||||
.EnumerateFiles(app, "*.cs", SearchOption.AllDirectories)
|
||||
.Where(path => File.ReadAllText(path).Contains(
|
||||
"RuntimePlatformGuard",
|
||||
StringComparison.Ordinal))
|
||||
.Select(path => Path.GetRelativePath(app, path).Replace('\\', '/'))
|
||||
.OrderBy(static path => path, StringComparer.Ordinal)
|
||||
.ToArray();
|
||||
|
||||
Assert.Equal(
|
||||
[
|
||||
"Credentials/AppCredentialResolver.cs",
|
||||
"Platform/GraphicalHostPlatformServices.cs",
|
||||
],
|
||||
files);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SmokePluginCopyUsesRidAwarePortableBuildAndPublishPaths()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue