You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnitTest1.cs 667 B

7 jaren geleden
123456789101112131415161718192021222324252627282930
  1. using System;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System.IO;
  4. using NTFSSecurityTest.Properties;
  5. namespace NTFSSecurityTest
  6. {
  7. [TestClass]
  8. public class UnitTest1
  9. {
  10. [TestMethod]
  11. public void TestMethod1()
  12. {
  13. Assert.IsTrue(Directory.Exists(Settings.Default.path + "1"));
  14. }
  15. [TestInitialize]
  16. public void Init()
  17. {
  18. System.Threading.Thread.Sleep(3000);
  19. Directory.CreateDirectory(Settings.Default.path);
  20. }
  21. [TestCleanup]
  22. public void Cleanup()
  23. {
  24. Directory.Delete(Settings.Default.path);
  25. }
  26. }
  27. }