﻿using DearLee.Toolkit.Nets;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Test {

  /// <summary>
  ///这是 NetConnectionTest 的测试类，旨在
  ///包含所有 NetConnectionTest 单元测试
  ///</summary>
  [TestClass()]
  public class NetConnectionTest {


    private TestContext testContextInstance;

    /// <summary>
    ///获取或设置测试上下文，上下文提供
    ///有关当前测试运行及其功能的信息。
    ///</summary>
    public TestContext TestContext {
      get {
        return testContextInstance;
      }
      set {
        testContextInstance = value;
      }
    }

    /// <summary>
    ///WNetAddConnection 的测试
    ///</summary>
    [TestMethod()]
    public void WNetAddConnectionTest() {
      // \\192.168.17.105\s$\output\uploadorder\null\201311221137186782.JPG
      // Z:\uploadorder\null\
      /*
      string username = "unicorn";
      string password = "unicorn";
      string remoteName = @"\\192.168.17.105\s$\output";
      string localName = null;
      uint expected = 0;
      uint actual;
      actual = NetConnection.WNetAddConnection(username, password, remoteName, localName);
       */
    }
  }
}
