You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
760 B

  1. using NUnit.Framework;
  2. namespace UnityEngine.Analytics.Tests
  3. {
  4. public partial class AnalyticsEventTests
  5. {
  6. [Test]
  7. public void TutorialStart_TutorialIdTest(
  8. [Values("test_tutorial", "", null)] string tutorialId
  9. )
  10. {
  11. Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.TutorialStart(tutorialId));
  12. EvaluateAnalyticsResult(m_Result);
  13. }
  14. [Test]
  15. public void TutorialStart_CustomDataTest()
  16. {
  17. var tutorialId = "test_tutorial";
  18. Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.TutorialStart(tutorialId, m_CustomData));
  19. EvaluateCustomData(m_CustomData);
  20. EvaluateAnalyticsResult(m_Result);
  21. }
  22. }
  23. }