|
50 | 50 | :credits 100}}) |
51 | 51 | (take-credits state :corp) |
52 | 52 | (play-from-hand state :runner "Kati Jones") |
| 53 | + (card-ability state :runner (get-resource state 0) 0) |
| 54 | + (is (= 3 (get-counters (get-resource state 0) :credit)) "Placed 3") |
53 | 55 | (play-from-hand state :runner "Kati Jones") |
| 56 | + (is (= 0 (get-counters (get-resource state 0) :credit)) "Correct kati was trashed") |
54 | 57 | (is (find-card "Kati Jones" (get-resource state))) |
55 | 58 | (is (last-log-contains? state "Kati Jones is trashed.")))) |
56 | 59 |
|
57 | 60 | (deftest installing-second-unique-on-off-campus-apartment-trashes-first-test |
58 | | - (do-game |
59 | | - (new-game {:runner {:hand [(qty "Kati Jones" 2) "Off-Campus Apartment"] |
60 | | - :credits 100}}) |
61 | | - (take-credits state :corp) |
62 | | - (play-from-hand state :runner "Kati Jones") |
63 | | - (play-from-hand state :runner "Off-Campus Apartment") |
64 | | - (let [oca (get-resource state 1)] |
65 | | - (play-from-hand state :runner "Kati Jones") |
66 | | - (click-prompt state :runner "Off-Campus Apartment") |
67 | | - (is (find-card "Kati Jones" (:hosted (refresh oca)))) |
| 61 | + (testing "Should trash the kati in the rig" |
| 62 | + (do-game |
| 63 | + (new-game {:runner {:hand [(qty "Kati Jones" 2) "Off-Campus Apartment"] |
| 64 | + :credits 100}}) |
| 65 | + (take-credits state :corp) |
| 66 | + (play-cards state :runner "Off-Campus Apartment" ["Kati Jones" "The Rig"] ["Kati Jones" "Off-Campus Apartment"]) |
| 67 | + (is (find-card "Kati Jones" (:hosted (get-resource state 0)))) |
| 68 | + (is (= "Kati Jones" (:title (get-discarded state :runner)))) |
| 69 | + (is (last-log-contains? state "Kati Jones is trashed.")))) |
| 70 | + (testing "Should trash the kati on OCA" |
| 71 | + (do-game |
| 72 | + (new-game {:runner {:hand [(qty "Kati Jones" 2) "Off-Campus Apartment"] |
| 73 | + :credits 100}}) |
| 74 | + (take-credits state :corp) |
| 75 | + (play-cards state :runner "Off-Campus Apartment" ["Kati Jones" "Off-Campus Apartment"] ["Kati Jones" "The Rig"]) |
| 76 | + (is (= "Kati Jones" (:title (get-resource state 1)))) |
| 77 | + (is (not (find-card "Kati Jones" (:hosted (get-resource state 0))))) |
| 78 | + (is (= "Kati Jones" (:title (get-discarded state :runner)))) |
| 79 | + (is (last-log-contains? state "Kati Jones hosted on .* is trashed.")))) |
| 80 | + (testing "Should trash the loaded kati on OCA" |
| 81 | + (do-game |
| 82 | + (new-game {:runner {:hand [(qty "Kati Jones" 2) "Off-Campus Apartment"] |
| 83 | + :credits 100}}) |
| 84 | + (take-credits state :corp) |
| 85 | + (play-cards state :runner "Off-Campus Apartment" ["Kati Jones" "Off-Campus Apartment"]) |
| 86 | + (card-ability state :runner (first (:hosted (get-resource state 0))) 0) |
| 87 | + (is (= 3 (get-counters (first (:hosted (get-resource state 0))) :credit)) "Placed 3") |
| 88 | + (play-cards state :runner ["Kati Jones" "Off-Campus Apartment"]) |
| 89 | + (is (= 0 (get-counters (first (:hosted (get-resource state 0))) :credit)) "Correct kati trash") |
| 90 | + (is (find-card "Kati Jones" (:hosted (get-resource state 0)))) |
68 | 91 | (is (= "Kati Jones" (:title (get-discarded state :runner)))) |
69 | | - (is (last-log-contains? state "Kati Jones is trashed."))))) |
| 92 | + (is (last-log-contains? state "Kati Jones hosted on .* is trashed."))))) |
70 | 93 |
|
71 | 94 | (deftest installing-second-hivemind-trashes-hosted-hivemind-test |
72 | 95 | (do-game |
|
0 commit comments