Simple test library for UdonSharp.
To use this package, you need to add my package repository. Please read more details here.
Please install this package with Creator Companion or VPM CLI.
Enable the koyashiro
package repository.
Find UdonTest
from the list of packages and install any version you want.
Execute the following command to install the package.
vpm add package net.koyashiro.udontest
using UdonSharp;
using Koyashiro.UdonTest;
public class UdonTestSample : UdonSharpBehaviour
{
public void Start()
{
Assert.True(true); // OK!
Assert.True(false); // FAILED!
Assert.False(false); // OK!
Assert.False(true); // FAILED!
Assert.Null(null); // OK!
Assert.Null(""); // FAILED!
Assert.Equal(1, 1); // OK!
Assert.Equal(1, 2); // FAILED!
Assert.Equal(1, 1f); // FAILED!
Assert.Equal("valid", "valid"); // OK!
Assert.Equal("valid", "invalid"); // FAILED!
Assert.Equal(new string[] { "first", "second" }, new string[] { "first", "second" }); // OK!
Assert.Equal(new string[] { "first", "second", "third" }, new string[] { "first", "second" }); // FAILED!
}
}
net.koyashiro.udontest
Undefined
0.5.2
Undefined
No dependencies
No legacy packages