asd
This commit is contained in:
31
20250213/ConsoleApp1/ConsoleApp1Tests/SzamolTests.cs
Normal file
31
20250213/ConsoleApp1/ConsoleApp1Tests/SzamolTests.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using ConsoleApp1;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp1.Tests
|
||||
{
|
||||
[TestClass()]
|
||||
public class SzamolTests
|
||||
{
|
||||
/*
|
||||
[TestMethod()]
|
||||
public void AddTest()
|
||||
{
|
||||
Assert.Fail();
|
||||
}
|
||||
*/
|
||||
|
||||
[TestMethod()]
|
||||
public void Add_two_positive_numbers_return_correct_sum()
|
||||
{
|
||||
var szamol = new Szamol();
|
||||
int result = szamol.Add(2,3);
|
||||
|
||||
Assert.AreEqual(5, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user