added Algorithms/SierpinskiTriangle.cs
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user