コード例 #1
0
 public void GetPathFallbackVersion()
 {
   string xmlFile = "TestFallbackVersion";
   InputHandler inputHandler = new InputHandler(xmlFile);
   Assert.AreEqual(Path.Combine(InputHandler.DefaultsDirectory, "TestFallbackVersion.xml"),
                   inputHandler.GetXmlPath(xmlFile));
 }
コード例 #2
0
 public void GetPathCustomXml()
 {
   string xmlFile = "TestCustom";
   InputHandler inputHandler = new InputHandler(xmlFile);
   Assert.AreEqual(Path.Combine(InputHandler.CustomizedMappingsDirectory, xmlFile + ".xml"),
                   inputHandler.GetXmlPath(xmlFile));
 }
コード例 #3
0
 public void GetPathFail()
 {
   string xmlFile = "TestFail";
   InputHandler inputHandler = new InputHandler(xmlFile);
   Assert.AreEqual(string.Empty, inputHandler.GetXmlPath(xmlFile));
 }
コード例 #4
0
 public void CorruptXml()
 {
   string xmlFile = "TestCorrupt";
   InputHandler inputHandler = new InputHandler(xmlFile);
   Assert.AreEqual(Path.Combine(InputHandler.DefaultsDirectory, "TestCorrupt.xml"), inputHandler.GetXmlPath(xmlFile));
 }