-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_0784_Letter_case_permutation_Test.cs
More file actions
40 lines (33 loc) · 1.06 KB
/
_0784_Letter_case_permutation_Test.cs
File metadata and controls
40 lines (33 loc) · 1.06 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
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Solution._0784.Letter_case_permutation;
namespace _0784.Letter_case_permutation.Tests
{
[TestClass()]
public class _0784_Letter_case_permutation_Test
{
_0784_Letter_case_permutation solution = new _0784_Letter_case_permutation();
[TestMethod()]
public void LetterCasePermutation_Test1()
{
// Arrange
string s = "a1b2";
var expected = new string[] { "a1b2", "a1B2", "A1b2", "A1B2" };
// Act
var actual = solution.LetterCasePermutation(s);
// Assert
actual.Should().BeEquivalentTo(expected);
}
[TestMethod()]
public void LetterCasePermutation_Test2()
{
// Arrange
string s = "3z4";
var expected = new string[] { "3z4", "3Z4" };
// Act
var actual = solution.LetterCasePermutation(s);
// Assert
actual.Should().BeEquivalentTo(expected);
}
}
}