private getNetStorageUri ( string path ) : |
||
path | string | |
return |
public void TestNetstorageGetUri() { var ns = new NetStorage("www.example.com", "user1", "secret1", false); Assert.AreEqual(ns.getNetStorageUri("/foobar"), "http://www.example.com/foobar"); ns = new NetStorage("www.example.com", "user1", "secret1", true); Assert.AreEqual(ns.getNetStorageUri("/foobar"), "https://www.example.com/foobar"); }
public void TestNetstorageGetUri() { var ns = new NetStorage("www.example.com", "user1", "secret1", false); Assert.AreEqual(ns.getNetStorageUri("/foobar"), "http://www.example.com/foobar"); ns = new NetStorage("www.example.com", "user1", "secret1", true); Assert.AreEqual(ns.getNetStorageUri("/foobar"), "https://www.example.com/foobar"); }