Files
unity-actions/test-projects/test-project/Assets/Tests/EditMode/SampleEditModeTest.cs
Webber Takken fd4f2e502a Update workflow to latest standards + add test projects (#102)
* Move test-project to subfolder

* Update workflow to target test-project

* Add 2018.3-legacy test-project

* Rename to legacy-render-pipeline

* Add test project for URP

* Cache LFS

* Update license

* Ignore artifacts

* Add test project for HDRP

* Avoid ambiguity in cache key
2021-05-20 23:58:14 +02:00

39 lines
656 B
C#

using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
namespace Tests
{
public class SampleEditModeTest
{
[Test]
public void TestIncrement()
{
// Given
var counter = new BasicCounter(0);
// When
counter.Increment();
// Then
Assert.AreEqual(1, counter.Count);
}
[Test]
public void TestMaxCount()
{
// Given
var counter = new BasicCounter(BasicCounter.MaxCount);
// When
counter.Increment();
// Then
Assert.AreEqual(BasicCounter.MaxCount, counter.Count);
}
}
}