예제 #1
0
    [Test] public void TraceWithReasonAndInner2()
    {
        var t0 = new T("SetPos", next: null, reason: "Teleport");
        var t1 = new T("Reposition", next: t0, reason: null);

        o(F.LogTrace(t0), "SetPos (Teleport)");
        o(F.LogTrace(t1), "Reposition -> SetPos (Teleport)");
    }
예제 #2
0
    [Test] public void Prefix()
    {
        var t = new T("SetPos", next: null, reason: null);

        t.Prefix('!');
        o(F.LogTrace(t), "!SetPos");
        t.Prefix('+');
        o(F.LogTrace(t), "+!SetPos");
    }
예제 #3
0
    [Test] public void TraceDecoratorWithReason()
    {
        var t = new T(new Cooldown(), next: null, reason: "[5] Steer");

        o(F.LogTrace(t), "<C> [5] Steer");
    }
예제 #4
0
    [Test] public void TraceWithReasonAndFormatArgs()
    {
        var t = new T("SetPos", next: null, reason: "Teleport here");

        o(F.LogTrace(t), "SetPos (Teleport here)");
    }
예제 #5
0
    [Test] public void TraceWithReason()
    {
        var t = new T("SetPos", next: null, reason: "Teleport");

        o(F.LogTrace(t), "SetPos (Teleport)");
    }
예제 #6
0
    [Test] public void LogTrace()
    {
        var t = new T("SetPos", next: null, reason: null);

        o(F.LogTrace(t), "SetPos");
    }
예제 #7
0
 [Test] public void LogTrace_null()
 {
     o(F.LogTrace(null), "?trace");
 }