-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_0824_goat_latin_Test.cs
More file actions
39 lines (32 loc) · 1.07 KB
/
_0824_goat_latin_Test.cs
File metadata and controls
39 lines (32 loc) · 1.07 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
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Solution._0824.Goat_latin;
namespace _0824.Goat_latin.Tests
{
[TestClass()]
public class _0824_Goat_latin_Test
{
_0824_Goat_latin solution = new _0824_Goat_latin();
[TestMethod()]
public void ToGoatLatin_Test1()
{
// Arrange
string sentence = "I speak Goat Latin";
var expected = "Imaa peaksmaaa oatGmaaaa atinLmaaaaa";
// Act
var actual = solution.ToGoatLatin(sentence);
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod()]
public void ToGoatLatin_Test2()
{
// Arrange
string sentence = "The quick brown fox jumped over the lazy dog";
var expected = "heTmaa uickqmaaa rownbmaaaa oxfmaaaaa umpedjmaaaaaa overmaaaaaaa hetmaaaaaaaa azylmaaaaaaaaa ogdmaaaaaaaaaa";
// Act
var actual = solution.ToGoatLatin(sentence);
// Assert
Assert.AreEqual(expected, actual);
}
}
}