Exemple #1
0
    public void EditorSanityTests_AddSortingLayerToTagManagerMethod_NewSortingLayerAdded(
        [Values("NewSortingLayer", "UnlikelyExistingName_7rEWiosG2")] string newSortingLayerName)
    {
        EditorTestUtilities.AddSortingLayerToTagManager(newSortingLayerName);

        Assert.That(EditorTestUtilities.SortingLayerExists(newSortingLayerName), Is.True);

        EditorTestUtilities.RemoveSortingLayerFromTagManager(newSortingLayerName);
    }
Exemple #2
0
    public void EditorSanityTests_RemoveSortingLayerFromTagManager_SortingLayerRemoved(
        [Values("SortingLayerToRemove", "UnlikelyExistingName_Wsx85qk")] string sortingLayerToRemove)
    {
        EditorTestUtilities.AddSortingLayerToTagManager(sortingLayerToRemove);
        Assert.That(EditorTestUtilities.SortingLayerExists(sortingLayerToRemove), Is.True);

        EditorTestUtilities.RemoveSortingLayerFromTagManager(sortingLayerToRemove);
        Assert.That(EditorTestUtilities.SortingLayerExists(sortingLayerToRemove), Is.False);
    }