public void GetPathFallbackVersion() { string xmlFile = "TestFallbackVersion"; InputHandler inputHandler = new InputHandler(xmlFile); Assert.AreEqual(Path.Combine(InputHandler.DefaultsDirectory, "TestFallbackVersion.xml"), inputHandler.GetXmlPath(xmlFile)); }
public void GetPathCustomXml() { string xmlFile = "TestCustom"; InputHandler inputHandler = new InputHandler(xmlFile); Assert.AreEqual(Path.Combine(InputHandler.CustomizedMappingsDirectory, xmlFile + ".xml"), inputHandler.GetXmlPath(xmlFile)); }
public void GetPathFail() { string xmlFile = "TestFail"; InputHandler inputHandler = new InputHandler(xmlFile); Assert.AreEqual(string.Empty, inputHandler.GetXmlPath(xmlFile)); }
public void CorruptXml() { string xmlFile = "TestCorrupt"; InputHandler inputHandler = new InputHandler(xmlFile); Assert.AreEqual(Path.Combine(InputHandler.DefaultsDirectory, "TestCorrupt.xml"), inputHandler.GetXmlPath(xmlFile)); }