31 lines
635 B
C#
31 lines
635 B
C#
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);
|
|
}
|
|
}
|
|
} |