public void CreateAdjacencyMatrixTest() { var field = new Field { EventLog = EventLogExample.ThreeCaseEventLog() }; var miner = new HeuristicMiner(field); var actual = miner.CreateAdjacencyMatrix(field); var expected = new[,] { { 0.0, 0.5, 0.5, 0.0, 0.5 }, { -0.5, 0.0, 0.0, 0.5, 0.0 }, { -0.5, 0.0, 0.0, 0.5, 0.0 }, { 0.0, -0.5, -0.5, 0.0, -0.5 }, { -0.5, 0.0, 0.0, 0.5, 0.0 } }; for (var i = 0; i < 5; i++) for (var j = 0; j < 5; j++) Assert.AreEqual(expected[i, j], actual[i, j]); }