VR4RoboticArm2/VR4RoboticArm/Library/PackageCache/com.unity.performance.profile-analyzer/Tests/Editor/ProfileAnalyzerAPITests.cs
IonutMocanu 48cccc22ad Main2
2025-09-08 11:13:29 +03:00

26 lines
647 B
C#

using NUnit.Framework;
public class ProfileAnalyzerAPITests : ProfileAnalyzerBaseTest
{
[Test]
public void ProfileAnalyzer_EmptyAnalysis_HasNoThreads()
{
var analyzer = m_SetupData.analyzer;
Assert.IsTrue(0 == analyzer.GetThreadNames().Count);
}
[Test]
public void ProfileAnalyzer_EmptyAnalysis_HasNoProgress()
{
var analyzer = m_SetupData.analyzer;
Assert.IsTrue(0 == analyzer.GetProgress());
}
[Test]
public void ProfileAnalyzer_EmptyAnalysis_ReturnsNullForAnalysis()
{
var analysis = GetAnalysisFromFrameData(null);
Assert.IsNull(analysis);
}
}