Namespace Serenity.UnityGlobal.Tests.Editor
Classes
FoundationEditorTests
Tests for FoundationEditor static utility methods. Editor-only.
SerenityWebGLResourcesPathsTests
Tests for the pure path/validation logic of Serenity.Global.Infrastructure.Editor.Utils.WebGL.SerenityWebGLResourcesPaths and the JSON-shape helpers of Serenity.Global.Infrastructure.Editor.Utils.WebGL.SerenityWebGLExportManifest. Covers normalization, Resources-folder detection, asset-path-to-load-key conversion and the structured destination validation rules. Nothing here touches the filesystem or AssetDatabase. Editor-only.
UnityAssemblyScannerTests
Tests for the docs-build assembly scanner helpers that do not require a fabricated Unity
Assembly: Serenity.Global.Infrastructure.Editor.Utils.UnityAssemblyScanner.PrepareOutput(Serenity.Global.Infrastructure.Editor.Utils.UnityBuildJob,System.String@,System.String@,System.String@) (derives dll/xml/rsp paths
from a Serenity.Global.Infrastructure.Editor.Utils.UnityBuildJob), the empty-sources guard of
Serenity.Global.Infrastructure.Editor.Utils.UnityAssemblyScanner.WriteRsp(Serenity.Global.Infrastructure.Editor.Utils.UnityBuildJob,System.String,System.String,System.String,System.Boolean), and the editor-driven
Serenity.Global.Infrastructure.Editor.Utils.UnityAssemblyScanner.GatherWork(System.Boolean,System.Boolean,System.String[]) which queries the live CompilationPipeline.
The full WriteRsp success path needs a real Unity Assembly (defines /
allReferences) that cannot be constructed in a unit test, so only its precondition is
asserted here. Editor-only.
UnityDirectoryClonerTests
Regression tests for UnityDirectoryCloner foundation settings behavior. Validates that cloning regenerates IFoundationSettings.Guid without creating dynamic Addressables labels from that Guid.
UnityDocfxApiTocGeneratorTests
Tests for the DocFX API table-of-contents pipeline: Serenity.Global.Infrastructure.Editor.Utils.TocNode (data model), Serenity.Global.Infrastructure.Editor.Utils.UnityDocfxTypeIndexBuilder, Serenity.Global.Infrastructure.Editor.Utils.UnityDocfxNamespaceIndexWriter and the orchestrating Serenity.Global.Infrastructure.Editor.Utils.UnityDocfxApiTocGenerator. These build TOC/index structures from generated *.yml files and emit toc.yml + per-namespace index.md. All file I/O is routed through a per-test temp directory cleaned up in TearDown(). Editor-only.
UnityDocfxWritersTests
Tests for the path-parameterized DocFX file-writing helpers that accept an explicit
docsDir and therefore can be exercised against a temp directory without touching the
real project: Serenity.Global.Infrastructure.Editor.Utils.UnityDocfxScaffoldWriter, Serenity.Global.Infrastructure.Editor.Utils.UnityDocfxTemplateWriter
and Serenity.Global.Infrastructure.Editor.Utils.UnityDocfxCacheCleaner.CleanApiFolder(System.String). The members that resolve their
destination from Serenity.Global.Infrastructure.Editor.Utils.UnityDocsPaths (e.g. CleanAllCaches,
UnityDocfxConfigurationWriter.Generate, UnityDocfxBrandingWriter.EnsureMinimalBrandFiles)
would write into the live project docs folder and are intentionally not invoked here.
Editor-only.
UnityDocsPathsAndConstantsTests
Tests for the computed paths in Serenity.Global.Infrastructure.Editor.Utils.UnityDocsPaths and the literal values in
Serenity.Global.Infrastructure.Editor.Utils.UnityDocsConstants. These are read-only derivations from
Application.dataPath; the tests assert the relationships between the paths rather
than absolute machine-specific strings, so they stay culture- and machine-agnostic.
Editor-only.
UnityEditorUtilsTests
Tests for UnityEditorUtils static utility classes. Editor-only.
UnityProcessRunnerTests
Tests for UnityProcessRunner. Editor-only.