using System using System Collections Generic using DetectingCyclesLib

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Collections.Generic;
using DetectingCyclesLib;
using Xunit;
namespace lab3_1_tests
{
public class UnitTest1
{
[Xunit.Fact]
public void TestMethod1()
{
DetectingCycles dc = new DetectingCycles();
List<int> resultList = new List<int>();
resultList = dc.DetectCycles(new int[] { 2, 0, 6, 3, 1, 6, 3, 1, 6, 3, 1 });
Assert.Equal<List<int>>(new List<int> { 6, 3, 1 }, resultList);
}
}
}