playtest-unity/playtest/Library/PackageCache/com.unity.performance.profi.../Tests/Editor/ProfileAnalyzerAPITests.cs

26 lines
647 B
C#
Raw Normal View History

2023-06-19 23:21:21 -04:00
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);
}
}