diff API/Savers/Xml/WarFoundryXmlFileSaverTests.cs @ 101:08fd75eafb67

Re #324: Add saving of Race and System data to files * Add tests for two systems in one file
author IBBoard <dev@ibboard.co.uk>
date Sat, 12 Mar 2011 20:16:30 +0000
parents dd384f35a96f
children c28ff466d009
line wrap: on
line diff
--- a/API/Savers/Xml/WarFoundryXmlFileSaverTests.cs	Sat Mar 12 19:54:07 2011 +0000
+++ b/API/Savers/Xml/WarFoundryXmlFileSaverTests.cs	Sat Mar 12 20:16:30 2011 +0000
@@ -44,6 +44,11 @@
 			return StringManipulation.StringToBytes(@"<?xml version=""1.0"" encoding=""UTF-8""?><system xmlns=""http://ibboard.co.uk/warfoundry/system"" xmlns:cats=""http://ibboard.co.uk/warfoundry/cats"" id=""mocksystem"" name=""Mock Game System"" defaultArmySize=""0"" warn=""false"" allowAllies=""false""><categories /><sysStatsList defaultStats=""default""><sysStats id=""default"" /></sysStatsList></system>");
 		}
 
+		protected override byte[] GetOtherGameSystemContentBytes()
+		{
+			return StringManipulation.StringToBytes(@"<?xml version=""1.0"" encoding=""UTF-8""?><system xmlns=""http://ibboard.co.uk/warfoundry/system"" xmlns:cats=""http://ibboard.co.uk/warfoundry/cats"" id=""otherSystem"" name=""Other System"" defaultArmySize=""0"" warn=""false"" allowAllies=""false""><categories /><sysStatsList defaultStats=""_"" /></system>");
+		}
+
 		protected override byte[] GetArmyContentBytes ()
 		{
 			return StringManipulation.StringToBytes(@"<?xml version=""1.0"" encoding=""UTF-8""?><army xmlns=""http://ibboard.co.uk/warfoundry/army"" xmlns:core=""http://ibboard.co.uk/warfoundry/core"" id=""MockArmy"" name=""Mock Army"" system=""mocksystem"" race=""mockrace"" maxPoints=""2000""><units /></army>");