12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using CopyCenter;
- using System.Collections.Generic;
- using System.Linq;
- namespace CopyCenterTests
- {
- [TestClass]
- public class UnitTest1
- {
- gr672_liiEntities db;
- [TestMethod]
- public void TestMethod1()
- {
- db = new gr672_liiEntities();
- AuthorizationWindow Authorization = new AuthorizationWindow();
- Assert.IsFalse(Authorization.Auth("", ""));
- Assert.IsTrue(Authorization.Auth("PaNDa", "123"));
- //RegistrationWindow Registration = new RegistrationWindow();
- //Assert.IsFalse(Registration.Reg("", "", "", "", "", ""));
- //Assert.IsTrue(Registration.Reg("PaNDa", "123", "Иван", "Лыков", "Игоревич", "7193"));
- CardsWindow Card = new CardsWindow();
- Assert.IsFalse(Card.Insert("", "", ""));
- Assert.IsTrue(Card.Insert("5", "Скидочная", "23"));
- //CardsWindow Cards = new CardsWindow();
- //Assert.IsFalse(Cards.Delete("", "", ""));
- //Assert.IsTrue(Cards.Delete("5", "Скидочная", "23"));
- CardsWindow Card1 = new CardsWindow();
- Assert.IsFalse(Card1.Update("", "", ""));
- Assert.IsTrue(Card1.Update("5", "Скидочная", "23"));
- }
-
-
- }
- }
-
-
|