public void PercentSpecifier_Checks() { // Arrange Environment.SetEnvironmentVariable("SHARPINIT_UNIT_PATH", DirectoryName); UnitRegistry.DefaultScanDirectories.Clear(); // Act UnitRegistry.ScanDefaultDirectories(); var unit_unspecified = UnitRegistry.GetUnit <ServiceUnit>(TestUnitFilename); var unit_specified = UnitRegistry.GetUnit <ServiceUnit>(TestUnitInstanceName); // Assert Assert.IsTrue(unit_unspecified.Descriptor.WorkingDirectory == "/" + StringEscaper.Unescape(unit_unspecified.Descriptor.DefaultInstance)); Assert.IsTrue(unit_specified.Descriptor.WorkingDirectory == "/" + StringEscaper.Unescape(UnitRegistry.GetUnitParameter(TestUnitInstanceName))); }