12345678910111213141516171819202122232425262728293031 |
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using System;
- using ConsoleApp27;
- namespace UnitTestProject1
- {
- [TestClass]
- public class UnitTest1
- {
- [TestMethod]
- public void TestMethod1()
- {
- int a = 3;
- int b = 5;
- int expected = 15;
- Program program = new Program();
- int actual = program.umnojeniya(a, b);
- Assert.AreEqual(expected, actual);
- }
- [TestMethod]
- public void TestMethod2()
- {
- int a = 3;
- int b = 5;
- int expected = 15;
- Program program = new Program();
- int actual = program.slojeniya(a, b);
- Assert.AreEqual(expected, actual);
- }
- }
- }
|