123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using System;
- using PC_Build_Games_SQL;
- using System.Configuration;
- namespace UnitTestProject1
- {
- [TestClass]
- public class UnitTest1
- {
-
- [TestMethod]
- public void TestMethod1()
- {
- SQL sQL = new SQL();
-
- Assert.IsTrue(sQL.ConnectivityCheck());
- }
- [TestMethod]
- public void TestMethod2()
- {
- SQL sQL = new SQL();
- Assert.IsFalse(sQL.Login_verification("Valera","1234"));
- }
- [TestMethod]
- public void TestMethod3()
- {
- SQL sQL = new SQL();
- Assert.AreEqual(1, sQL.Registration("", "", "", "", ""));
- }
- [TestMethod]
- public void TestMethod4()
- {
- SQL sQL = new SQL();
- Assert.AreEqual("Ваша конфигурация подходит для рекомендованных требований", sQL.CompatibilityCheck("Белая", "The Witcher"));
- }
- [TestMethod]
- public void TestMethod5()
- {
- SQL sQL = new SQL();
- Assert.IsNull(sQL.User);
- }
- [TestMethod]
- public void TestMethod6()
- {
- SQL sQL = new SQL();
- sQL.Login_verification("7", "7");
- Assert.IsNotNull(sQL.User);
- }
- [TestMethod]
- public void TestMethod7()
- {
- SQL sQL = new SQL();
- Assert.AreEqual(sQL.Registration("valera", "valerovitch", "vava54234", "asfafs@asdf", "1234567"),5);
- }
- }
- }
|