-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_1768_Merge_strings_alternately_Test.cs
More file actions
56 lines (46 loc) · 1.41 KB
/
_1768_Merge_strings_alternately_Test.cs
File metadata and controls
56 lines (46 loc) · 1.41 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
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Solution._1768.Merge_strings_alternately;
namespace _1768.Merge_strings_alternately.Tests
{
[TestClass()]
public class _1768_Merge_strings_alternately_Test
{
_1768_Merge_strings_alternately solution = new _1768_Merge_strings_alternately();
[TestMethod()]
public void MergeAlternately_Test1()
{
// Arrange
string word1 = "abc";
string word2 = "pqr";
var expected = "apbqcr";
// Act
var actual = solution.MergeAlternately(word1, word2);
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod()]
public void MergeAlternately_Test2()
{
// Arrange
string word1 = "ab";
string word2 = "pqrs";
var expected = "apbqrs";
// Act
var actual = solution.MergeAlternately(word1, word2);
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod()]
public void MergeAlternately_Test3()
{
// Arrange
string word1 = "abcd";
string word2 = "pq";
var expected = "apbqcd";
// Act
var actual = solution.MergeAlternately(word1, word2);
// Assert
Assert.AreEqual(expected, actual);
}
}
}