| | 1 | | using NUnit.Framework; |
| | 2 | | using UnityEditor; |
| | 3 | |
|
| | 4 | | namespace Tests |
| | 5 | | { |
| | 6 | | public class BuilderProjectsPanelViewPrefabCheck |
| | 7 | | { |
| | 8 | | private BuilderProjectsPanelView prefab; |
| | 9 | |
|
| | 10 | | [SetUp] |
| | 11 | | public void SetUp() |
| | 12 | | { |
| | 13 | | const string prefabAssetPath = |
| | 14 | | "Assets/Scripts/MainScripts/DCL/Controllers/HUD/BuilderProjectsPanel/Resources/BuilderProjectsPanel.pref |
| 1 | 15 | | prefab = AssetDatabase.LoadAssetAtPath<BuilderProjectsPanelView>(prefabAssetPath); |
| 1 | 16 | | } |
| | 17 | |
|
| | 18 | | [Test] |
| 2 | 19 | | public void SectionsContainerShouldBeEmpty() { Assert.AreEqual(0, prefab.sectionsContainer.transform.childCount) |
| | 20 | | } |
| | 21 | | } |