Class WebGLRoundTripContentGuard
The real project content a round-trip test must leave exactly as it found it — the shipped package tree,
the project's own Resources folder and the Addressables data, whose group assets include the real
Serenity group — taken just before one Export or Remove and compared right after it. Both the bytes of
every file (.meta files included) and the set of asset GUIDs under those folders are compared, so a
failure names each file that was rewritten, added or removed and each asset that left or entered them.
Only the paths the fixture itself owns inside those folders — its throwaway group asset — are exempt.
Inherited Members
Namespace: Serenity.Global.Tests.Editor.WebGL
Assembly: Tests.Editor.dll
Syntax
public sealed class WebGLRoundTripContentGuard
Methods
AssertOnlyChanged(IReadOnlyCollection<string>)
Fails unless the files of the guarded content that changed since Before(string, IReadOnlyCollection<string>) are
exactly expectedChangedPaths, and no asset left or entered the guarded folders.
Declaration
public void AssertOnlyChanged(IReadOnlyCollection<string> expectedChangedPaths)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyCollection<string> | expectedChangedPaths |
Before(string, IReadOnlyCollection<string>)
Records the guarded content before operationName runs.
fixtureOwnedPaths are the files inside the guarded folders the fixture owns.
Declaration
public static WebGLRoundTripContentGuard Before(string operationName, IReadOnlyCollection<string> fixtureOwnedPaths)
Parameters
| Type | Name | Description |
|---|---|---|
| string | operationName | |
| IReadOnlyCollection<string> | fixtureOwnedPaths |
Returns
| Type | Description |
|---|---|
| WebGLRoundTripContentGuard |