added Algorithms/SierpinskiTriangle.cs

This commit is contained in:
didier amyot committed 2023-08-28 09:30:26 -04:00
1 parent 6acd8c8ff1
commit a832521bda
7 files changed
+137 -4

No files matched your search

@@ -0,0 +1,14 @@
namespace Algorithms.Tests;
using Algorithms;
[TestClass]
public class SierpinskiTriangleTest
{
[TestMethod]
public void TestGeneration()
{
SierpinskiTriangle st = new SierpinskiTriangle(new Random(666));
Assert.AreEqual(10, st.GenerateRandomPath(new Point(2, 3), 10).Count());
}
}