mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-29 14:39:33 +08:00
* add: new inputs and method params * feat: add scoped registry to manifest * feat: setup test job * fix(workflow): revert change from license to serial * feat: support private scoped registries * fix: multiple scopes
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);
|
|
}
|
|
|
|
}
|
|
}
|