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.
 
 
 
 

34 lines
1.0 KiB

using System;
using NUnit.Framework;
namespace UnityEngine.Analytics.Tests
{
public partial class AnalyticsEventTests
{
[Test]
public void PushNotificationClick_MessageIdTest(
[Values("test_message", "", null)] string messageId
)
{
if (string.IsNullOrEmpty(messageId))
{
Assert.Throws<ArgumentException>(() => AnalyticsEvent.PushNotificationClick(messageId));
}
else
{
Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.PushNotificationClick(messageId));
EvaluateAnalyticsResult(m_Result);
}
}
[Test]
public void PushNotificationClick_CustomDataTest()
{
var messageId = "test_message";
Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.PushNotificationClick(messageId, m_CustomData));
EvaluateCustomData(m_CustomData);
EvaluateAnalyticsResult(m_Result);
}
}
}