Сергей Кокуев %!s(int64=2) %!d(string=hai) anos
pai
achega
e7cbf5d96d

+ 4 - 1
.vs/VSWorkspaceState.json

@@ -1,6 +1,9 @@
 {
   "ExpandedNodes": [
-    "\\exam"
+    "",
+    "\\exam",
+    "\\exam\\exam"
   ],
+  "SelectedNode": "\\exam\\exam\\Program.cs",
   "PreviewInSolutionExplorer": false
 }

BIN=BIN
.vs/gogs/FileContentIndex/00ecc9fa-85d7-43cd-96a0-c02c6401f777.vsidx


BIN=BIN
.vs/gogs/FileContentIndex/a6302c4d-1b2a-40eb-bcc7-8f4e847586d3.vsidx


BIN=BIN
.vs/gogs/FileContentIndex/ee0ecc4c-9377-4e11-a4b6-ded772d4de5c.vsidx


BIN=BIN
.vs/gogs/v17/.suo


BIN=BIN
.vs/slnx.sqlite


BIN=BIN
exam/.vs/ProjectEvaluation/exam.metadata.v2


BIN=BIN
exam/.vs/ProjectEvaluation/exam.projects.v2


BIN=BIN
exam/.vs/exam/DesignTimeBuild/.dtbcache.v2


BIN=BIN
exam/.vs/exam/FileContentIndex/01a450e8-a952-41cd-999d-447ed6a6d30b.vsidx


+ 0 - 0
exam/.vs/exam/FileContentIndex/7376010b-b10a-4c52-b049-f33fdf30f48f.vsidx → exam/.vs/exam/FileContentIndex/19c27b3d-60d5-45a4-a362-9733f57264e4.vsidx


BIN=BIN
exam/.vs/exam/FileContentIndex/e49bc4ab-77ee-46c2-9315-71dabf91f3b4.vsidx → exam/.vs/exam/FileContentIndex/208eb577-057d-4b77-acd9-c6b03484ce91.vsidx


+ 0 - 0
exam/.vs/exam/FileContentIndex/b6815443-a6af-483e-a132-fdc5d0f72413.vsidx → exam/.vs/exam/FileContentIndex/5f0800c8-a1a1-40d8-97ff-b7c34b2e0e21.vsidx


BIN=BIN
exam/.vs/exam/v17/.futdcache.v1


BIN=BIN
exam/.vs/exam/v17/.suo


+ 63 - 0
exam/exam/Class1.cs

@@ -0,0 +1,63 @@
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+using Exam;
+
+namespace ModulTest
+{
+    [TestClass]
+    public class UnitTest
+    {
+        /// <summary>
+        /// Тест авторизации под успешным входом
+        /// </summary>
+        [TestMethod]
+        public void autorization_valid()
+        {
+            Testovik obj = new Testovik();
+            string login = "123";
+            string password = "123";
+            string res = "Вы успешно вошли";
+            string result = obj.autoRization(login, password);
+            Assert.AreEqual(res, result);
+        }
+        /// <summary>
+        /// Тест авторизации при условии того, что не введен логин
+        /// </summary>
+        [TestMethod]
+        public void autorization_not_login()
+        {
+            Testovik obj = new Testovik();
+            string login = null;
+            string password = "123";
+            string res = "Введите логин";
+            string result = obj.autoRization(login, password);
+            Assert.AreEqual(res, result);
+        }
+        /// <summary>
+        /// Тест авторизации при условии того, что не введен пароль
+        /// </summary>
+        [TestMethod]
+        public void autorization_not_password()
+        {
+            Testovik obj = new Testovik();
+            string login = "123";
+            string password = null;
+            string res = "Введите пароль";
+            string result = obj.autoRization(login, password);
+            Assert.AreEqual(res, result);
+        }
+        /// <summary>
+        /// Тест авторизации при условии того, что логин или пароль неверно введен
+        /// </summary>
+        [TestMethod]
+        public void autorization_no_valid()
+        {
+            Testovik obj = new Testovik();
+            string login = "1234234123123";
+            string password = "5673342134";
+            string res = "Неверный логин и/или пароль";
+            string result = obj.autoRization(login, password);
+            Assert.AreEqual(res, result);
+        }
+    }
+}

+ 2 - 2
exam/exam/Program.cs

@@ -65,14 +65,14 @@ namespace Exam
                 Console.WriteLine();
             }
 
-            Console.WriteLine("Коэффициент равен: ");
+            Console.WriteLine("Вес равен: ");
             for (int k = 0; k < n - 1; k++)
             {
                 for (int i = k + 1; i < n; i++)
                 {
                     for (int j = k + 1; j < n; j++)
                     {
-                        a[i, j] = a[i, j] + a[k, j] + (a[i, k] + a[k, k]);//формула для нахождения коэфициентов
+                        a[i, j] = a[i, j] + a[k, j] + (a[i, k] + a[k, k]);//формула для нахождения веса
                     }
 
                 }

+ 1 - 1
exam/exam/obj/Debug/net6.0/exam.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-d105c8e057a0094cafdaf94a1e41d25defd46bed
+ad369fabed6d4dd3587a0eb574bdc3bce7cee555