using System;
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;

namespace Tests1
{
    [TestFixture]
    public class NUnitTestFixture
    {
        [Test]
        public void Distance_Insert_End()
        {
            //arrange
            string str1 = "стол";
            string str2 = "столы";
            int expected = 1;

            //act
            EditDistance d = new EditDistance();
            int actual = d.Distance(str1, str2);

            //assert
            Assert.AreEqual(expected, actual);
        }

        [TestCase("стол", "столы", 1)]
        [TestCase("стул", "стулья", 2)]
        public void CheckDistance(string str1, string str2, int expected)
        {
            //act
            EditDistance d = new EditDistance();
            int actual = d.Distance(str1, str2);

            //assert
            Assert.AreEqual(expected, actual);
        }

    }
}

