Пример #1
0
    [Test] public void Format()
    {
        t = 0;
        status s = x[5]?[done.Via(log && "Reason")];

        // '?' indicates the decorator doesn't know what it's gating just yet.
        // But we're about to find out hence '-> Test'
        o(F.Status(s), "* <C> [5.0] -> TestCooldown.Format (Reason)");
        s = x[5]?[done.Via(log && "Test")];
        // Since the target returned 'done' we're now on cooldown. The target
        // scope was stored in the previous run, so the '? ->' notation drops.
        o(F.Status(s), "  <C> [5.0] TestCooldown.Format");
    }
Пример #2
0
    /*
     * [Test] public void StatusWithPromotionPrefix(){
     *  o (F.Status((+cont).due.Via(
     *                         log && "Attack", "A", "B")), "* +A.B (Attack)");
     * }
     *
     * [Test] public void StatusWithDemotionPrefix(){
     *  o (F.Status((-done).undue.Via(
     *                         log && "Attack", "A", "B")), "+ -A.B (Attack)");
     * }
     *
     * [Test] public void StatusWithCondonePrefix(){
     *  o (F.Status((~fail).due.Via(
     *                         log && "Attack", "A", "B")), "* ~A.B (Attack)");
     * }
     *
     * [Test] public void StatusWithMultiplePrefix(){
     *  o (F.Status(+-!~fail.Via(log && "Attack", "A", "B")),
     *                                   "+ +-!~A.B (Attack)" );
     * }
     */

    [Test] public void TraceViaCallerInfo()
    {
        o(F.Status(done.Via()), "* TestStatusFormat.TraceViaCallerInfo");
    }
Пример #3
0
 [Test] public void StatusWithInversionPrefix()
 {
     o(F.Status(!done.Via(log && "Attack", "A", "B")), "  !A.B (Attack)");
 }
Пример #4
0
 [Test] public void Status()
 {
     o(F.Status(done.Via(log && "Out of range", "NPC", "Attack")),
       "* NPC.Attack (Out of range)");
 }