-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_1672_Richest_customer_wealth_Test.cs
More file actions
70 lines (57 loc) · 1.58 KB
/
_1672_Richest_customer_wealth_Test.cs
File metadata and controls
70 lines (57 loc) · 1.58 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Solution._1672.Richest_customer_wealth;
namespace _1672.Richest_customer_wealth.Tests
{
[TestClass()]
public class _1672_Richest_customer_wealth_Test
{
_1672_Richest_customer_wealth s = new _1672_Richest_customer_wealth();
[TestMethod()]
public void MaximumWealth_Test1()
{
// Arrange
int[][] accounts =
{
new int[]{ 1,2,3 },
new int[]{ 3,2,1 }
};
var expected = 6;
// Act
var actual = s.MaximumWealth(accounts);
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod()]
public void MaximumWealth_Test2()
{
// Arrange
int[][] accounts =
{
new int[]{ 1,5 },
new int[]{ 7,3 },
new int[]{ 3,5 }
};
var expected = 10;
// Act
var actual = s.MaximumWealth(accounts);
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod()]
public void MaximumWealth_Test3()
{
// Arrange
int[][] accounts =
{
new int[]{ 2,8,7 },
new int[]{ 7,1,3 },
new int[]{ 1, 9, 5 }
};
var expected = 17;
// Act
var actual = s.MaximumWealth(accounts);
// Assert
Assert.AreEqual(expected, actual);
}
}
}