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

namespace Tests1
{
    [TestFixture]
    public class NUnitTestFixture2
    {
        EditDistance d;

        #region SetUp / TearDown

        [SetUp]
        public void Init()
        { 
            //Запуск перед каждым тестом
            this.d = new EditDistance();
        }

        [TearDown]
        public void Dispose()
        {
            //Запуск после каждого теста
            this.d = null;
        }

        #endregion

        #region Tests

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

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

        #endregion
    }
}
