public void Share_IsFileSystem_ExpectValid() { //------------Setup for test-------------------------- var share = new Share("a", "b", ShareType.Disk); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.IsTrue(share.IsFileSystem); }
public void Share_IsFileSystem_DeviveType_ExpectFalse() { //------------Setup for test-------------------------- var share = new Share("a", "b", ShareType.Device); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.IsFalse(share.IsFileSystem); }
public void Share_Constructor_IPC_ExpectCorrectType() { //------------Setup for test-------------------------- var share = new Share("a", "IPC$", ShareType.Special); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.AreEqual(ShareType.Special|ShareType.IPC, share.ShareType); }
public void Share_Constructor_Construct_ExpectValid() { //------------Setup for test-------------------------- var share = new Share("a","b",ShareType.Disk); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.AreEqual(@"\\a\b",share.ToString()); }
public void Share_IsFileSystem_Special_ExpectFalse() { //------------Setup for test-------------------------- var share = new Share("a", "b", ShareType.Special); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.IsTrue(share.IsFileSystem); }
public void Share_ToString_BlankServer_ExpectLocalName() { //------------Setup for test-------------------------- var share = new Share("", "IPC$", ShareType.Special); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.AreEqual("\\\\"+Environment.MachineName+"\\IPC$", share.ToString()); }