|
@@ -20,10 +20,19 @@ namespace CopyCenterTests
|
|
Assert.IsFalse(Authorization.Auth("", ""));
|
|
Assert.IsFalse(Authorization.Auth("", ""));
|
|
Assert.IsTrue(Authorization.Auth("PaNDa", "123"));
|
|
Assert.IsTrue(Authorization.Auth("PaNDa", "123"));
|
|
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ [TestMethod]
|
|
|
|
+ public void RegistrTest()
|
|
|
|
+ {
|
|
RegistrationWindow Registration = new RegistrationWindow();
|
|
RegistrationWindow Registration = new RegistrationWindow();
|
|
Assert.IsFalse(Registration.Reg("", "", "", "", "", ""));
|
|
Assert.IsFalse(Registration.Reg("", "", "", "", "", ""));
|
|
//Assert.IsTrue(Registration.Reg("PaNDa", "123", "Иванов", "Иван", "Иванович", "454545"));
|
|
//Assert.IsTrue(Registration.Reg("PaNDa", "123", "Иванов", "Иван", "Иванович", "454545"));
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ [TestMethod]
|
|
|
|
+ public void CardInsertTest()
|
|
|
|
+ {
|
|
CardsWindow Card = new CardsWindow();
|
|
CardsWindow Card = new CardsWindow();
|
|
Assert.IsFalse(Card.Insert("", "", ""));
|
|
Assert.IsFalse(Card.Insert("", "", ""));
|
|
Assert.IsTrue(Card.Insert("5", "Скидочная", "23"));
|
|
Assert.IsTrue(Card.Insert("5", "Скидочная", "23"));
|
|
@@ -32,15 +41,17 @@ namespace CopyCenterTests
|
|
//Assert.IsFalse(Cards.Delete("", "", ""));
|
|
//Assert.IsFalse(Cards.Delete("", "", ""));
|
|
//Assert.IsTrue(Cards.Delete("5", "Скидочная", "23"));
|
|
//Assert.IsTrue(Cards.Delete("5", "Скидочная", "23"));
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ [TestMethod]
|
|
|
|
+ public void CardUpdateTest()
|
|
|
|
+ {
|
|
CardsWindow Card1 = new CardsWindow();
|
|
CardsWindow Card1 = new CardsWindow();
|
|
Assert.IsFalse(Card1.Update("", "", ""));
|
|
Assert.IsFalse(Card1.Update("", "", ""));
|
|
Assert.IsTrue(Card1.Update("5", "Скидочная", "23"));
|
|
Assert.IsTrue(Card1.Update("5", "Скидочная", "23"));
|
|
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|