logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class 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.

    Inheritance
    object
    UnityAssemblyScannerTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityGlobal.Tests.Editor
    Assembly: Tests.Editor.dll
    Syntax
    public class UnityAssemblyScannerTests

    Constructors

    UnityAssemblyScannerTests()

    Declaration
    public UnityAssemblyScannerTests()

    Methods

    GatherWork_DefineSubpathExclusion_DoesNotThrow()

    Declaration
    public void GatherWork_DefineSubpathExclusion_DoesNotThrow()

    GatherWork_IncludeEditor_DoesNotThrowAndReturnsJobs()

    Declaration
    public void GatherWork_IncludeEditor_DoesNotThrowAndReturnsJobs()

    GatherWork_NoAssemblyTypes_ReturnsEmptyList()

    Declaration
    public void GatherWork_NoAssemblyTypes_ReturnsEmptyList()

    PrepareOutput_CreatesOutputDirectory()

    Declaration
    public void PrepareOutput_CreatesOutputDirectory()

    PrepareOutput_DerivesDllXmlRspFromAsmName()

    Declaration
    public void PrepareOutput_DerivesDllXmlRspFromAsmName()

    TearDown()

    Declaration
    public void TearDown()

    WriteRsp_EmptySources_ThrowsInvalidOperation()

    Declaration
    public void WriteRsp_EmptySources_ThrowsInvalidOperation()

    WriteRsp_NullSources_ThrowsInvalidOperation()

    Declaration
    public void WriteRsp_NullSources_ThrowsInvalidOperation()
    In this article
    © 2026 Serenity. All Rights Reserved