Maze / Library /PackageCache /com.unity.performance.profile-analyzer@1.2.2 /Tests /Editor /ProfileAnalyzerAPITests.cs
| using NUnit.Framework; | |
| public class ProfileAnalyzerAPITests : ProfileAnalyzerBaseTest | |
| { | |
| [] | |
| public void ProfileAnalyzer_EmptyAnalysis_HasNoThreads() | |
| { | |
| var analyzer = m_SetupData.analyzer; | |
| Assert.IsTrue(0 == analyzer.GetThreadNames().Count); | |
| } | |
| [] | |
| public void ProfileAnalyzer_EmptyAnalysis_HasNoProgress() | |
| { | |
| var analyzer = m_SetupData.analyzer; | |
| Assert.IsTrue(0 == analyzer.GetProgress()); | |
| } | |
| [] | |
| public void ProfileAnalyzer_EmptyAnalysis_ReturnsNullForAnalysis() | |
| { | |
| var analysis = GetAnalysisFromFrameData(null); | |
| Assert.IsNull(analysis); | |
| } | |
| } | |