feat(launcher): Campaign LA add Avalonia desktop shell
This commit is contained in:
parent
6c4cd2bbc6
commit
d0a9c65d85
31 changed files with 4831 additions and 16 deletions
|
|
@ -370,6 +370,41 @@ public sealed class SessionConfigComposerTests
|
|||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ComposeProbeAndWriteWritesThePasswordFreeProbeDocument()
|
||||
{
|
||||
string root = Path.Combine(
|
||||
Path.GetTempPath(),
|
||||
"acdream-launcher-probe-writer-tests",
|
||||
Guid.NewGuid().ToString("N"));
|
||||
try
|
||||
{
|
||||
var paths = new ApplicationPathSet(
|
||||
Path.Combine(root, "cfg"),
|
||||
Path.Combine(root, "data"),
|
||||
Path.Combine(root, "cache"),
|
||||
null);
|
||||
ComposedSessionConfig composed = SessionConfigComposer.ComposeProbeAndWrite(
|
||||
Server(),
|
||||
Account(),
|
||||
Install,
|
||||
paths,
|
||||
"probe-write");
|
||||
|
||||
string json = File.ReadAllText(composed.ConfigFilePath);
|
||||
Assert.Contains("\"mode\": \"probe\"", json, StringComparison.Ordinal);
|
||||
Assert.DoesNotContain("\"character\"", json, StringComparison.Ordinal);
|
||||
Assert.DoesNotContain(Account().Password, json, StringComparison.Ordinal);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (Directory.Exists(root))
|
||||
{
|
||||
Directory.Delete(root, recursive: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static JsonObject ParseRoot(ComposedSessionConfig composed)
|
||||
{
|
||||
string json = SessionConfigComposer.Serialize(composed.Document);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue