Esempio n. 1
0
        public void GenerateNodesShouldReturnNodeArrayOfSpecifiedCount(int count)
        {
            // Arrange
            // Act
            var result = _nodeGenerator.GenerateNodes(count);

            // Assert
            Assert.That(result.Length, Is.EqualTo(count));
        }
Esempio n. 2
0
        private void CreateNodes()
        {
            foreach (var node in _nodeGenerator.GenerateNodes(_nodeCount))
            {
                _network.AddNode(node);
            }

            var centralMachine = _network.Nodes.First();

            centralMachine.NodeType = NodeType.CentralMachine;
        }