ProgaOra/20250213/ConsoleApp1/ConsoleApp1Tests/SzamolTests.cs

31 lines
635 B
C#
Raw Normal View History

2025-02-13 09:19:22 +00:00
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);
}
}
}