using System using Microsoft VisualStudio TestTools UnitTesting namesp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TestWrongGraph
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
int n = 6;
char[] letters = new char[] { '1', '3', '2', '2', '3', '1' };
int[,] graph = new int[,] {
{0,1,1,1,0,0},
{1,0,0,0,0,0},
{1,0,0,0,0,0},
{1,0,0,0,1,1},
{0,0,0,1,0,0},
{0,0,0,1,0,0}
};
string word = "123";
Assert.AreEqual(word, letters);
}
public void TestMethod2()
{
int n = 6;
char[] letters = new char[] { '1', '3', '2', '2', '5', '1' };
int[,] graph = new int[,] {
{0,1,1,1,0,0},
{1,0,0,0,0,0},
{1,0,0,0,0,0},
{1,0,0,0,1,1},
{0,0,0,1,0,0},
{0,0,0,1,0,0}
};
string word = "123";
Assert.AreEqual(word, letters);
}
}
}