-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_1249_Minimum_remove_to_make_valid_parentheses_Test.cs
More file actions
53 lines (43 loc) · 1.4 KB
/
_1249_Minimum_remove_to_make_valid_parentheses_Test.cs
File metadata and controls
53 lines (43 loc) · 1.4 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
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Solution._1249.Minimum_remove_to_make_valid_parentheses;
namespace _1249.Minimum_remove_to_make_valid_parentheses.Tests
{
[TestClass()]
public class _1249_Minimum_remove_to_make_valid_parentheses_Test
{
_1249_Minimum_remove_to_make_valid_parentheses solution = new _1249_Minimum_remove_to_make_valid_parentheses();
[TestMethod()]
public void MinRemoveToMakeValid_Test1()
{
// Arrange
string s = "lee(t(c)o)de)";
string expected = "lee(t(c)o)de";
// Act
var actual = solution.MinRemoveToMakeValid(s);
// Assert
Assert.AreEqual(actual, expected);
}
[TestMethod()]
public void MinRemoveToMakeValid_Test2()
{
// Arrange
string s = "a)b(c)d";
string expected = "ab(c)d";
// Act
var actual = solution.MinRemoveToMakeValid(s);
// Assert
Assert.AreEqual(actual, expected);
}
[TestMethod()]
public void MinRemoveToMakeValid_Test3()
{
// Arrange
string s = "a)b(c)d";
string expected = "ab(c)d";
// Act
var actual = solution.MinRemoveToMakeValid(s);
// Assert
Assert.AreEqual(actual, expected);
}
}
}