Class AudioChannelCreatorTests
EditMode tests for AudioChannelCreator: id/folder validation rules (pure) and, in a
temporary folder, actual channel-settings asset creation including the resolve-or-create-in-place
contract AudioChannelCreator now delegates to
Serenity.AudioPlayer.Infrastructure.Settings.Editor.Builder.AudioPlayerSettingsCreator for.
The AudioMixerGroup is passed as null (allowed) because a real AudioMixerGroup cannot be constructed
in EditMode. Every Create(string, string, AudioPlayerType, uint, AudioMixerGroup, bool) call passes
registerAsAddressables: false so these tests never write to the project's Addressables settings.
Inherited Members
Namespace: Serenity.UnitySoundMixer.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class AudioChannelCreatorTests
Constructors
AudioChannelCreatorTests()
Declaration
public AudioChannelCreatorTests()
Methods
Create_TwiceWithSameId_UpdatesTheExistingAssetInPlaceInsteadOfDuplicating()
Declaration
public void Create_TwiceWithSameId_UpdatesTheExistingAssetInPlaceInsteadOfDuplicating()
Create_ValidationFailure_ReturnsErrorWithoutAsset()
Declaration
public void Create_ValidationFailure_ReturnsErrorWithoutAsset()
Create_WritesSettingsAsset_WithConfiguredFields()
Declaration
public void Create_WritesSettingsAsset_WithConfiguredFields()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()
Validate_AcceptsSafeId()
Declaration
public void Validate_AcceptsSafeId()
Validate_AcceptsWellFormedFolderThatDoesNotExistYet()
Semantic change from the old hand-rolled folder check: Validate(string, string) now
delegates to AudioPlayerSettingsCreator.Validate, which only requires the folder to be a
well-formed 'Assets'-rooted path — not to already exist — because Create creates a missing
folder itself. A folder that does not exist YET is therefore accepted.
Declaration
public void Validate_AcceptsWellFormedFolderThatDoesNotExistYet()
Validate_RejectsEmptyId()
Declaration
public void Validate_RejectsEmptyId()
Validate_RejectsFolderOutsideAssetsOrEmpty()
Declaration
public void Validate_RejectsFolderOutsideAssetsOrEmpty()
Validate_RejectsIdWithSpacesOrSymbols()
Declaration
public void Validate_RejectsIdWithSpacesOrSymbols()