-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPathPlusPlusTest.cs
More file actions
32 lines (24 loc) · 840 Bytes
/
Copy pathPathPlusPlusTest.cs
File metadata and controls
32 lines (24 loc) · 840 Bytes
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
using System.Collections;
using BTD_Mod_Helper.Api.Testing;
using UnityEngine;
namespace PathsPlusPlus;
/// <summary>
/// Default test for Paths++
/// </summary>
public class PathPlusPlusTest : ModContentDefaultTest<PathPlusPlus>
{
private PathPlusPlus Path => Content;
/// <inheritdoc />
public override IEnumerator Test()
{
yield return EnsureOnMainMenuWithNoPopUps();
yield return LoadIntoGame();
var towerModel = Bridge.Model.GetTowerWithName(Path.Tower);
var tower = AssertNotNull(CreateTowerAt(Bridge, new Vector2(0, 0), towerModel));
Path.SetTier(tower.tower, -1); // Mark this as the chosen path if there are multiple options
for (var i = 0; i < Path.UpgradeCount; i++)
{
Assert(UpgradeTower(Bridge, tower, Path.Path));
}
}
}