Migrating data from Access 97 to Postgres database
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using acc_pgsql;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. namespace acc_pgsqlTest
  5. {
  6. /// <summary>
  7. ///This is a test class for ProgramTest and is intended
  8. ///to contain all ProgramTest Unit Tests
  9. ///</summary>
  10. [TestClass()]
  11. public class ProgramTest
  12. {
  13. private TestContext testContextInstance;
  14. /// <summary>
  15. ///Gets or sets the test context which provides
  16. ///information about and functionality for the current test run.
  17. ///</summary>
  18. public TestContext TestContext
  19. {
  20. get
  21. {
  22. return testContextInstance;
  23. }
  24. set
  25. {
  26. testContextInstance = value;
  27. }
  28. }
  29. #region Additional test attributes
  30. //
  31. //You can use the following additional attributes as you write your tests:
  32. //
  33. //Use ClassInitialize to run code before running the first test in the class
  34. //[ClassInitialize()]
  35. //public static void MyClassInitialize(TestContext testContext)
  36. //{
  37. //}
  38. //
  39. //Use ClassCleanup to run code after all tests in a class have run
  40. //[ClassCleanup()]
  41. //public static void MyClassCleanup()
  42. //{
  43. //}
  44. //
  45. //Use TestInitialize to run code before running each test
  46. //[TestInitialize()]
  47. //public void MyTestInitialize()
  48. //{
  49. //}
  50. //
  51. //Use TestCleanup to run code after each test has run
  52. //[TestCleanup()]
  53. //public void MyTestCleanup()
  54. //{
  55. //}
  56. //
  57. #endregion
  58. /// <summary>
  59. ///A test for Main
  60. ///</summary>
  61. [TestMethod()]
  62. [DeploymentItem("acc_pgsql.exe")]
  63. public void MainTest()
  64. {
  65. string[] args = null; // TODO: Initialize to an appropriate value
  66. Program_Accessor.Main(args);
  67. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  68. }
  69. }
  70. }