Firstborn/Library/PackageCache/com.unity.ads@3.7.5/Tests/Runtime/Advertisement/Events/FinishEventArgsTests.cs

23 lines
717 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using NUnit.Framework;
using UnityEngine.Advertisements.Events;
namespace UnityEngine.Advertisements.Tests
{
[TestFixture]
class FinishEventArgsTests
{
[TestCase("ads", ShowResult.Failed)]
[TestCase("intro", ShowResult.Finished)]
[TestCase("test", ShowResult.Skipped)]
[TestCase("", ShowResult.Finished)]
[TestCase(null, ShowResult.Skipped)]
public void Constructor(string placementId, ShowResult showResult)
{
var eventArgs = new FinishEventArgs(placementId, showResult);
Assert.That(eventArgs.placementId, Is.EqualTo(placementId));
Assert.That(eventArgs.showResult, Is.EqualTo(showResult));
}
}
}