Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5cbf6b5

Browse files
committed
Add first test
1 parent a22bb61 commit 5cbf6b5

File tree

2 files changed

+33
-0
lines changed
  • CodingInterview/CodingInterview/csharp_tests
  • python_tests

2 files changed

+33
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using NUnit.Framework;
2+
//Task 1
3+
//Writing "Hello, World!" program.
4+
namespace CodingInterview
5+
{
6+
public class Class1
7+
{
8+
9+
private static string GetHelloWorld()
10+
{
11+
return "Hello World!";
12+
}
13+
14+
[Test]
15+
public void CheckGetHelloWorldFunction()
16+
{
17+
var Expected_String = "Hello World!";
18+
Assert.AreEqual(GetHelloWorld(), Expected_String);
19+
}
20+
}
21+
22+
}

‎python_tests/test_1.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Task 1
2+
# Writing "Hello, World!" program.
3+
4+
# Implementation
5+
def get_hello_world():
6+
return "Hello, World!"
7+
8+
# Test Section
9+
def test_hello_world():
10+
expected_string = "Hello, World!"
11+
assert get_hello_world() == expected_string

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /