예제 #1
0
 public void IsValidFileNameInvalidTest()
 {
     using (TileGeneratorViewModel_Accessor target = new TileGeneratorViewModel_Accessor())
     {
         string fileName = Environment.CurrentDirectory + @"\Image\<>fff.Png";
         bool   expected = false;
         bool   actual;
         actual = target.IsValidFileName(fileName);
         Assert.AreEqual(expected, actual);
         Assert.AreEqual(Properties.Resources.OutputFilenameInvalidCharacterError, target.InvalidOutputFileNameErrorMessage);
     }
 }
예제 #2
0
 public void IsValidFileNameEmptyTest()
 {
     using (TileGeneratorViewModel_Accessor target = new TileGeneratorViewModel_Accessor())
     {
         string fileName = string.Empty;
         bool   expected = false;
         bool   actual;
         actual = target.IsValidFileName(fileName);
         Assert.AreEqual(expected, actual);
         Assert.AreEqual(Properties.Resources.MandatoryError, target.InvalidOutputFileNameErrorMessage);
     }
 }
예제 #3
0
 public void IsValidFileNameTest()
 {
     using (TileGeneratorViewModel_Accessor target = new TileGeneratorViewModel_Accessor())
     {
         string fileName = "L0X0Y0.Png";
         bool   expected = true;
         bool   actual;
         actual = target.IsValidFileName(fileName);
         Assert.AreEqual(expected, actual);
         Assert.AreEqual(string.Empty, target.InvalidOutputFileNameErrorMessage);
     }
 }
 public void IsValidFileNameTest()
 {
     using (TileGeneratorViewModel_Accessor target = new TileGeneratorViewModel_Accessor())
     {
         string fileName = "L0X0Y0.Png";
         bool expected = true;
         bool actual;
         actual = target.IsValidFileName(fileName);
         Assert.AreEqual(expected, actual);
         Assert.AreEqual(string.Empty, target.InvalidOutputFileNameErrorMessage);
     }
 }
 public void IsValidFileNameInvalidTest()
 {
     using (TileGeneratorViewModel_Accessor target = new TileGeneratorViewModel_Accessor())
     {
         string fileName = Environment.CurrentDirectory + @"\Image\<>fff.Png";
         bool expected = false;
         bool actual;
         actual = target.IsValidFileName(fileName);
         Assert.AreEqual(expected, actual);
         Assert.AreEqual(Properties.Resources.OutputFilenameInvalidCharacterError, target.InvalidOutputFileNameErrorMessage);
     }
 }
 public void IsValidFileNameEmptyTest()
 {
     using (TileGeneratorViewModel_Accessor target = new TileGeneratorViewModel_Accessor())
     {
         string fileName = string.Empty;
         bool expected = false;
         bool actual;
         actual = target.IsValidFileName(fileName);
         Assert.AreEqual(expected, actual);
         Assert.AreEqual(Properties.Resources.MandatoryError, target.InvalidOutputFileNameErrorMessage);
     }
 }