예제 #1
0
 public void IOPathImplicitTest()
 {
     string path = "test";
     IOPath target = new IOPath("test");
     string temp = target;
     Assert.AreEqual(temp, path);
 }
예제 #2
0
 public void IOPathImplicitBackTest()
 {
     IOPath ioPath = new IOPath("test");
     string temp = "test";
     IOPath target = temp;
     Assert.AreEqual(target, ioPath);
 }
예제 #3
0
 public void IsExistedDirectoryTest2()
 {
     string path = "C:\\temp\\scardsvr.exe";
     IOPath target = new IOPath(path);
     bool expected = false;
     bool actual;
     actual = target.IsExistedDirectory();
     Assert.AreEqual(expected, actual);
 }
예제 #4
0
 public void IsExistedDirectoryTest1()
 {
     string path = "C:\\temp";
     IOPath target = new IOPath(path);
     bool expected = true;
     bool actual;
     actual = target.IsExistedDirectory();
     Assert.AreEqual(expected, actual);
 }
예제 #5
0
 public void ToStringTest()
 {
     string path = "test"; // TODO: 初始化为适当的值
     IOPath target = new IOPath(path); // TODO: 初始化为适当的值
     string expected = "test"; // TODO: 初始化为适当的值
     string actual;
     actual = target.ToString();
     Assert.AreEqual(expected, actual);
 }
예제 #6
0
 public void LastDirectoryTestL()
 {
     string path = "C:/temp/test.exe"; // TODO: 初始化为适当的值
     IOPath target = new IOPath(path); // TODO: 初始化为适当的值
     string expected = "C:/temp/"; // TODO: 初始化为适当的值
     string actual;
     actual = target.LastDirectory();
     Assert.AreEqual(expected, actual);
 }
예제 #7
0
 public void IsExistedDirectoryTest4()
 {
     string path = null;
     IOPath target = new IOPath(path);
     bool expected = false;
     bool actual;
     actual = target.IsExistedDirectory();
     Assert.AreEqual(expected, actual);
 }