Witam,
mam za zadanie napisanie kodu do testów jednostkowych
wklejam fragment testów:
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CodeKata;
namespace CodeKata.Tests
{
[TestClass]
public class GaderypolukiTests
{
[TestMethod]
public void TestMethod1()
{
var key = "GADERYPOLUKI";
var encodedText = "thd nlmbdy pf ydougcdmdnts sgvd kn thd gyygr kn thd knedx cpyydsopnekna tp thd sruugbud. thd knedxds mlst bd kn thd guohgbdtkcgu pyedy pf thd sruugbuds pf thd dncpekna idr, d.a. fpy thd idr 'odig' thd fkyst knedx wplue cpyydsopne tp 'ig' gne thd sdcpne knedx tp 'od' sruugbud.";
var expectedText = "the number of replacements save in the array in the index corresponding to the syllable. the indexes must be in the alphabetical order of the syllables of the encoding key, e.g. for the key 'peka' the first index would correspond to 'ka' and the second index to 'pe' syllable.";
Tuple<string, int[]> actual = Gaderypoluki.Encode(key, encodedText);
Assert.AreEqual(expectedText.ToLower(), actual.Item1.ToLower());
}
[TestMethod]
[ExpectedException(typeof(ArgumentException))]
public void TestMethod2()
Prosiłabym o podpowiedzi oraz wyjaśnienie, o co chodzi, jak się za to zabrać.
pozdrawiam