Skip to content

Commit 31b9060

Browse files
committed
rename to ConfigureGame
1 parent 3e025fc commit 31b9060

6 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/PetroglyphTools/PG.StarWarsGame.Engine.Testing/VirtualGameRepoBuilder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ public VirtualGameRepoBuilder(IServiceProvider services)
3030
}
3131

3232
/// <summary>Configures files under the base game directory.</summary>
33+
/// <remarks>The base game directory always exists; this populates it. Unlike <see cref="WithMod"/> and
34+
/// <see cref="WithFallback"/>, it does not add an optional origin.</remarks>
3335
/// <param name="configure">The writer callback.</param>
3436
/// <exception cref="ArgumentNullException"><paramref name="configure"/> is <see langword="null"/>.</exception>
35-
public VirtualGameRepoBuilder WithGame(Action<IRepoOriginWriter> configure)
37+
public VirtualGameRepoBuilder ConfigureGame(Action<IRepoOriginWriter> configure)
3638
{
3739
if (configure == null)
3840
throw new ArgumentNullException(nameof(configure));

test/ModVerify.Test/Framework/MinimalFoc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static VirtualGameRepoBuilder WithMinimalFoc(this VirtualGameRepoBuilder
2020
if (builder == null)
2121
throw new ArgumentNullException(nameof(builder));
2222

23-
return builder.WithGame(g =>
23+
return builder.ConfigureGame(g =>
2424
{
2525
g.WriteEmptyMeg("Data/Patch.meg");
2626
g.WriteEmptyMeg("Data/Patch2.meg");

test/ModVerify.Test/Framework/RepoOriginWriterMegTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void WriteMeg_ForwardSlashEntryName_NormalizedToUppercaseBackslash()
1414
var fs = ServiceProvider.GetRequiredService<IFileSystem>();
1515

1616
using var repo = CreateBuilder()
17-
.WithGame(g => g.WriteMeg(
17+
.ConfigureGame(g => g.WriteMeg(
1818
"Data/test.meg",
1919
meg => meg.Add("scripts/init.lua", "print('hello')")))
2020
.Build();

test/ModVerify.Test/Pipeline/EngineErrorSurfacingTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public async Task Verify_MalformedXml_SurfacesAsVerificationError()
1414
{
1515
using var repo = CreateBuilder()
1616
.WithMinimalFoc()
17-
.WithGame(g => g.WriteXml("SFXEventFiles.xml", "<<not-xml"))
17+
.ConfigureGame(g => g.WriteXml("SFXEventFiles.xml", "<<not-xml"))
1818
.Build();
1919

2020
var result = await RunPipelineAsync(repo, verifiers: new NoVerifiersProvider());

test/ModVerify.Test/Verifiers/GameObjectTypeVerifierTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public async Task Verify_GameObjectWithMissingLandModel_EmitsFileNotFound()
1313
{
1414
using var repo = CreateBuilder()
1515
.WithMinimalFoc()
16-
.WithGame(g =>
16+
.ConfigureGame(g =>
1717
{
1818
g.WriteXml("Empty_GameObjects.xml", """
1919
<?xml version="1.0" encoding="utf-8"?>

test/ModVerify.Test/Verifiers/SfxEventVerifierTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public async Task Verify_SfxEventWithMissingSample_EmitsFileNotFound()
1313
{
1414
using var repo = CreateBuilder()
1515
.WithMinimalFoc()
16-
.WithGame(g =>
16+
.ConfigureGame(g =>
1717
{
1818
g.WriteXml("Empty_SFXEvents.xml", """
1919
<?xml version="1.0" encoding="utf-8"?>

0 commit comments

Comments
 (0)