Пример #1
0
 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());
 }
 public void Test3()
 {
     rn = new RobotsNetwork("..\\..\\..\\test3.txt");
     Assert.IsFalse(rn.isDestroy());
 }
 public void Test2()
 {
     rn = new RobotsNetwork("..\\..\\..\\test2.txt");
     Assert.IsTrue(rn.isDestroy());
 }
Пример #4
0
 static void Main(string[] args)
 {
     RobotsNetwork network = new RobotsNetwork("..\\..\\input.txt");
     System.Console.WriteLine(network.IsAllRobotsDestroy());
 }