mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 12:49:08 +08:00
* 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
39 lines
656 B
C#
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);
|
|
}
|
|
|
|
}
|
|
}
|