added test

This commit is contained in:
didier amyot committed 2023-08-24 09:55:07 -04:00
1 parent ebd3c92268
commit 6acd8c8ff1
3 files changed
+25 -3

No files matched your search

+2 -2
View File
@@ -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
} }
+16
View File
@@ -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());
}
}
+7 -1
View File
@@ -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);
} }
} }