public void ItAbortsIfThereAreNoneLeft() { State.CreateLeaderboard() .AddLeader("eweiss").WithEffects("Star", "Carbuncle") .AddLeader("revans").WithEffects("Gold Ring") .Done(); var subject = new InvinciblePlayerFilter(); var args = BuildArgsFromState(); subject.Process(State, args); Check.That(args.Aborted).IsTrue(); Check.That(args.EligibleTargets).IsEmpty(); }
public void ItFiltersOutPlayersWithProtectiveItems() { State.CreateLeaderboard() .AddLeader("eweiss").WithEffects("Star", "Carbuncle") .AddLeader("revans").WithEffects("Moogle") .Done(); var subject = new InvinciblePlayerFilter(); var args = BuildArgsFromState(); subject.Process(State, args); Check.That(args.Aborted).IsFalse(); Check.That(args.EligibleTargets.Select(t => t.PlayerName)) .Not.Contains("eweiss"); }