Ejemplo n.º 1
0
 public void TestGetUrlSuccess()
 {
     AllDebrid debrid = new AllDebrid(username: this.username, password: this.password);
     var result = debrid.GetUrlDebride(url: "http://uptobox.com/4uf113r6fmwg");
     Assert.IsNotNull(result);
     Assert.IsInstanceOfType(result, typeof(Link));
 }
Ejemplo n.º 2
0
 public void TestLoginFail()
 {
     AllDebrid all = new AllDebrid(username: this.username, password: "******");
     PrivateObject obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(all);
     var result = obj.Invoke("Login", "WrongUsername", "WrongPassword");
     Assert.IsFalse((bool)result);
     Assert.IsNull(obj.GetField("_cookie"));
 }
Ejemplo n.º 3
0
        public void TestGetUrlSuccess()
        {
            AllDebrid debrid = new AllDebrid(username: this.username, password: this.password);
            var       result = debrid.GetUrlDebride(url: "http://uptobox.com/4uf113r6fmwg");

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(Link));
        }
Ejemplo n.º 4
0
        public void TestLoginFail()
        {
            AllDebrid     all    = new AllDebrid(username: this.username, password: "******");
            PrivateObject obj    = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(all);
            var           result = obj.Invoke("Login", "WrongUsername", "WrongPassword");

            Assert.IsFalse((bool)result);
            Assert.IsNull(obj.GetField("_cookie"));
        }
Ejemplo n.º 5
0
 public void TestLoginSuccess()
 {
     AllDebrid all = new AllDebrid(username: this.username, password: this.password);
     PrivateObject obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(all);
     var result = obj.Invoke("Login", this.username, this.password);
     var attrCookie = obj.GetFieldOrProperty("_cookie");
     var attrDaysLeft = obj.GetFieldOrProperty("daysLeft");
     Assert.IsNotNull(attrCookie);
     Assert.IsTrue((bool)result);
     Assert.IsNotNull(attrDaysLeft);
     
 }
Ejemplo n.º 6
0
        public void TestLoginSuccess()
        {
            AllDebrid     all          = new AllDebrid(username: this.username, password: this.password);
            PrivateObject obj          = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(all);
            var           result       = obj.Invoke("Login", this.username, this.password);
            var           attrCookie   = obj.GetFieldOrProperty("_cookie");
            var           attrDaysLeft = obj.GetFieldOrProperty("daysLeft");

            Assert.IsNotNull(attrCookie);
            Assert.IsTrue((bool)result);
            Assert.IsNotNull(attrDaysLeft);
        }