Exemple #1
0
 public bool LoadUnitFromFile(string path)
 {
     try
     {
         UnitRegistry.AddUnitByPath(path);
         return(true);
     }
     catch { return(false); }
 }
        public void AddUnitByPath_UnitNotFound_True()
        {
            // Arrange

            // Act
            UnitRegistry.AddUnitByPath("");

            // Assert
            Assert.IsTrue(UnitRegistry.Units.Count == 0);
        }