Class SerenityCreationValidationResultTests
Tests for Serenity.Global.Infrastructure.Editor.SerenityCreationValidationResult. Unlike its neighbours in this folder it touches no assets on disk: the type is a pure in-memory accumulator, so every case here is a direct assertion about what a validation pass reported and in what order.
The cases that matter most are the two the inversion onto AuthoringIssue could have changed silently — report order within a severity, and whether a flat view still reflects a finding added after something already read it.
Inherited Members
Namespace: Serenity.UnityGlobal.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class SerenityCreationValidationResultTests
Constructors
SerenityCreationValidationResultTests()
Declaration
public SerenityCreationValidationResultTests()
Methods
AddError_MakesTheResultInvalidAndAppearsInErrorsOnly()
Declaration
public void AddError_MakesTheResultInvalidAndAppearsInErrorsOnly()
AddError_StampsTheGeneralSectionOnTheWholeAsset()
Declaration
public void AddError_StampsTheGeneralSectionOnTheWholeAsset()
AddIssue_KeepsTheSubjectAndSectionTheScannerNamed()
Declaration
public void AddIssue_KeepsTheSubjectAndSectionTheScannerNamed()
AddIssue_Null_ReportsNothing()
Declaration
public void AddIssue_Null_ReportsNothing()
AddIssue_WithInfoSeverity_ShowsInIssuesButNeitherFlatViewAndDoesNotBlock()
Declaration
public void AddIssue_WithInfoSeverity_ShowsInIssuesButNeitherFlatViewAndDoesNotBlock()
AddIssues_AppendsEveryFindingInOrder()
Declaration
public void AddIssues_AppendsEveryFindingInOrder()
AddIssues_Null_ReportsNothing()
Declaration
public void AddIssues_Null_ReportsNothing()
AddWarning_LeavesTheResultValid()
Declaration
public void AddWarning_LeavesTheResultValid()
Errors_KeepsReportOrderIndependentlyOfInterleavedWarnings()
Declaration
public void Errors_KeepsReportOrderIndependentlyOfInterleavedWarnings()
Errors_ReflectsFindingsAddedAfterAPreviousRead()
Declaration
public void Errors_ReflectsFindingsAddedAfterAPreviousRead()
NewResult_IsValidAndReportsNothing()
Declaration
public void NewResult_IsValidAndReportsNothing()