-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_0067_Add_binary_Test.cs
More file actions
41 lines (34 loc) · 935 Bytes
/
_0067_Add_binary_Test.cs
File metadata and controls
41 lines (34 loc) · 935 Bytes
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 Microsoft.VisualStudio.TestTools.UnitTesting;
using Solution._0067.Add_binary;
namespace _0067.Add_binary.Tests
{
[TestClass()]
public class _0067_Add_binary_Test
{
_0067_Add_binary solution = new _0067_Add_binary();
[TestMethod()]
public void AddBinary_Test1()
{
// Arrange
string a = "11";
string b = "1";
var expected = "100";
// Act
var actual = solution.AddBinary(a, b);
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod()]
public void AddBinary_Test2()
{
// Arrange
string a = "1010";
string b = "1011";
var expected = "10101";
// Act
var actual = solution.AddBinary(a, b);
// Assert
Assert.AreEqual(expected, actual);
}
}
}