added test
This commit is contained in:
1 parent
ebd3c92268
commit
6acd8c8ff1
3 files changed
+25
-3
No files matched your search
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"dotnet.defaultSolution": "FirstProject.sln",
|
"dotnet.defaultSolution": "FirstProject.sln",
|
||||||
"editor.fontSize": 12,
|
"editor.fontSize": 22,
|
||||||
"window.zoomLevel": 1,
|
"window.zoomLevel": 1,
|
||||||
"terminal.integrated.fontSize": 12,
|
"terminal.integrated.fontSize": 22,
|
||||||
"workbench.tree.indent": 23
|
"workbench.tree.indent": 23
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
using Algorithms.IdCard;
|
||||||
|
|
||||||
|
namespace Algorithms.Tests.IdCard;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class NameTest
|
||||||
|
{
|
||||||
|
[TestMethod]
|
||||||
|
public void TestIsValid()
|
||||||
|
{
|
||||||
|
Assert.IsFalse(new Name("", "").IsValid());
|
||||||
|
Assert.IsFalse(new Name("bob", "r2d2").IsValid());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4,7 +4,13 @@ namespace Algorithms.Tests;
|
|||||||
public class UnitTest1
|
public class UnitTest1
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void TestMethod1()
|
public void TestQuiPasse()
|
||||||
{
|
{
|
||||||
|
Assert.AreEqual(1+ 1, 2);
|
||||||
|
}
|
||||||
|
[TestMethod]
|
||||||
|
public void TestQuiNePassePas()
|
||||||
|
{
|
||||||
|
Assert.AreEqual(2, 1 + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user