public void TestCopyConstructor() { WriteManifest(MANIFEST_SIMPLE); Assert.That(modifier.ReadManifest(), Is.EqualTo(true)); PackageManifestModifier copy = new PackageManifestModifier(modifier); CollectionAssert.AreEquivalent(copy.manifestDict, modifier.manifestDict); Assert.That(copy.GetManifestJson(), Is.EqualTo(MANIFEST_SIMPLE)); Assert.That(copy.GetManifestJson(), Is.EqualTo(modifier.GetManifestJson())); }
public void Setup() { // Delete the temporary manifest if it exists. if (File.Exists(PackageManifestModifier.MANIFEST_FILE_PATH)) { File.Delete(PackageManifestModifier.MANIFEST_FILE_PATH); } // Create a modifier that uses a logs to the system console. modifier = new PackageManifestModifier(); modifier.Logger.Target = LogTarget.Console; modifier.Logger.Level = LogLevel.Debug; }