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")); } [TestMethod] public void CardUpdateTest() { CardsWindow Card1 = new CardsWindow(); Assert.IsFalse(Card1.Update("", "", "")); Assert.IsTrue(Card1.Update("5", "Скидочная", "23")); } [TestMethod] public void CardDeleteTest() { CardsWindow Cards = new CardsWindow(); Assert.IsFalse(Cards.Delete("", "", "")); Assert.IsTrue(Cards.Delete("5", "Скидочная", "23")); } } }