public void IsAllDestroyTest() { RobotsNetwork ourNetwork = new RobotsNetwork("..\\..\\test.txt"); Assert.IsFalse(ourNetwork.IsAllRobotsDestroy()); ourNetwork = new RobotsNetwork("..\\..\\test2.txt"); Assert.IsTrue(ourNetwork.IsAllRobotsDestroy()); ourNetwork = new RobotsNetwork("..\\..\\test3.txt"); Assert.IsTrue(ourNetwork.IsAllRobotsDestroy()); }
static void Main(string[] args) { RobotsNetwork network = new RobotsNetwork("..\\..\\input.txt"); System.Console.WriteLine(network.IsAllRobotsDestroy()); }