public void GenerateNodesShouldReturnNodeArrayOfSpecifiedCount(int count) { // Arrange // Act var result = _nodeGenerator.GenerateNodes(count); // Assert Assert.That(result.Length, Is.EqualTo(count)); }
private void CreateNodes() { foreach (var node in _nodeGenerator.GenerateNodes(_nodeCount)) { _network.AddNode(node); } var centralMachine = _network.Nodes.First(); centralMachine.NodeType = NodeType.CentralMachine; }