game.Title.ShouldBe("The Lord of the Rings: The Battle for Middle-earth II - The Rise of the Witch-king");
game.SortTitle.ShouldBe("Lord of the Rings: The Battle for Middle-earth II - The Rise of the Witch-king");
game.Description.ShouldBe(
"In this add-on for The Lord of the Rings: The Battle for Middle-Earth II it is your goal to lead the great armies of the Witch-King called the Angmar to victory. But there are also other mentionable additions and changes which come with this add-on:\n\nAll six factions from the main game now have access to new units and heroes like Prince Brand a Dwarven captain or the Uruk Deathbringers on the side of Isengard which are powerful two-handed swords-fighters.");
game.Type.ShouldBe(GameType.StandaloneExpansion);
game.ReleasedOn.Value.Year.ShouldBe(2006);
game.ReleasedOn.Value.Month.ShouldBe(11);
game.ReleasedOn.Value.Day.ShouldBe(28);
game.Singleplayer.ShouldBeTrue();
game.Genres.ShouldContain(g=>g.Name=="Real Time Strategy (RTS)");
"%APPDATA%\\My The Lord of the Rings, The Rise of the Witch-king Files");
path.IsRegex.ShouldBeFalse();
break;
case"7662b2b7-f291-4146-aaa3-0866e80567b5":
path.Type.ShouldBe(SavePathType.File);
path.Path.ShouldBe("options.ini");
path.WorkingDirectory.ShouldBe(
"%APPDATA%\\My The Lord of the Rings, The Rise of the Witch-king Files");
path.IsRegex.ShouldBeFalse();
break;
case"60b94122-5c7c-4083-a265-d7221ae5ced9":
path.Type.ShouldBe(SavePathType.File);
path.Path.ShouldBe("save");
path.WorkingDirectory.ShouldBe("%APPDATA%\\My Battle for Middle-earth(tm) II Files");
path.IsRegex.ShouldBeFalse();
break;
case"bf3b6fa2-35a0-48ed-a036-a4d9ce5c04e5":
path.Type.ShouldBe(SavePathType.File);
path.Path.ShouldBe("options.ini");
path.WorkingDirectory.ShouldBe(
"%APPDATA%\\My The Lord of the Rings, The Rise of the Witch-king Files");
path.IsRegex.ShouldBeFalse();
break;
}
}
foreach(varscriptingame.Scripts)
{
switch(script.Id.ToString())
{
case"2c24fdfd-22e1-4cbb-b650-147dafe27622":
script.Type.ShouldBe(ScriptType.NameChange);
script.Name.ShouldBe("Name Change Script");
script.Description.ShouldBe(
"Recreates the NetworkPrefs.ini file in both game appdata directories using the new player's name. The name must be only 10 characters long and must be separated by _00.");
script.RequiresAdmin.ShouldBeFalse();
break;
case"48780389-3ede-44d6-8c7e-450bffc10f76":
script.Type.ShouldBe(ScriptType.KeyChange);
script.Name.ShouldBe("Key Change Script");
script.Description.ShouldBe("Changes the CD key stored in the registry");