-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOnlyTestSuite.cs
38 lines (35 loc) · 1.21 KB
/
OnlyTestSuite.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using Godot;
using GdUnit4;
using System;
namespace MinimalGdUnitRiderProject
{
using static Assertions;
using static Utils;
[TestSuite]
public partial class OnlyTestSuite
{
[TestCase]
public void IsFoo()
{
AssertThat("Foo").IsEqual("Foo");
}
[TestCase('A', Variant.Type.Int)]
[TestCase(SByte.MaxValue, Variant.Type.Int)]
[TestCase(Byte.MaxValue, Variant.Type.Int)]
[TestCase(Int16.MaxValue, Variant.Type.Int)]
[TestCase(UInt16.MaxValue, Variant.Type.Int)]
[TestCase(Int32.MaxValue, Variant.Type.Int)]
[TestCase(UInt32.MaxValue, Variant.Type.Int)]
[TestCase(Int64.MaxValue, Variant.Type.Int)]
[TestCase(UInt64.MaxValue, Variant.Type.Int)]
[TestCase(Single.MaxValue, Variant.Type.Float)]
[TestCase(Double.MaxValue, Variant.Type.Float)]
[TestCase("HalloWorld", Variant.Type.String)]
[TestCase(true, Variant.Type.Bool)]
public void ParameterizedTest(dynamic? value, Variant.Type type) {
Godot.Variant v = value == null ? new Variant() : Godot.Variant.CreateFrom(value);
AssertObject(v.VariantType).IsEqual(type);
}
}
}