Basic Test Example
This small example shows how to define a unit test in GdUnit4.
-
extends GdUnitTestSuite func test_example(): assert_str("This is an example message")\ .has_length(26)\ .starts_with("This is an ex")
-
namespace Examples; using GdUnit4; using static GdUnit4.Assertions; [TestSuite] public class GdUnitExampleTest { [TestCase] public void Example() { AssertString("This is an example message") .HasLength(26) .StartsWith("This is an ex"); } }