123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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"));
- }
- [TestMethod]
- public void RegistrTest()
- {
- RegistrationWindow Registration = new RegistrationWindow();
- Assert.IsFalse(Registration.Reg("", "", "", "", "", ""));
- //Assert.IsTrue(Registration.Reg("PaNDa", "123", "Иванов", "Иван", "Иванович", "454545"));
- }
- [TestMethod]
- public void CardInsertTest()
- {
- //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"));
- }
- [TestMethod]
- public void CardUpdateTest()
- {
- //CardsWindow Card1 = new CardsWindow();
- //Assert.IsFalse(Card1.Update("", "", ""));
- //Assert.IsTrue(Card1.Update("5", "Скидочная", "23"));
- }
- }
- }
-
-
|