Add test case for provinces with spaces
This commit is contained in:
parent
1689d2e9b1
commit
bfafb66603
@ -50,5 +50,20 @@ public class RegexTest
|
||||
Assert.That(move.province2, Is.EqualTo("Spain"));
|
||||
Assert.That(move.location2, Is.EqualTo("nc"));
|
||||
Assert.That(move.turn2, Is.EqualTo(""));
|
||||
|
||||
match = re.Move.Match("F North Sea - Picardy");
|
||||
Assert.That(match.Success, Is.True);
|
||||
move = OrderRegex.ParseMove(match);
|
||||
Assert.That(move.power, Is.EqualTo(""));
|
||||
Assert.That(move.type, Is.EqualTo("F"));
|
||||
Assert.That(move.timeline, Is.EqualTo(""));
|
||||
Assert.That(move.province, Is.EqualTo("North Sea"));
|
||||
Assert.That(move.location, Is.EqualTo(""));
|
||||
Assert.That(move.turn, Is.EqualTo(""));
|
||||
Assert.That(move.verb, Is.EqualTo("-"));
|
||||
Assert.That(move.timeline2, Is.EqualTo(""));
|
||||
Assert.That(move.province2, Is.EqualTo("Picardy"));
|
||||
Assert.That(move.location2, Is.EqualTo(""));
|
||||
Assert.That(move.turn2, Is.EqualTo(""));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user