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

+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
{
[TestMethod]
public void TestMethod1()
public void TestQuiPasse()
{
Assert.AreEqual(1+ 1, 2);
}
[TestMethod]
public void TestQuiNePassePas()
{
Assert.AreEqual(2, 1 + 1);
}
}