public static void VerifyInvalidPackageJsonVersion(string rootPath, string roleName, string runtime, string version) { string packagePath = Path.Combine(rootPath, roleName); string actualVersion; Assert.IsFalse(JavaScriptPackageHelpers.TryGetEngineVersion(packagePath, runtime, out actualVersion)); }
public static void VerifyPackageJsonVersion(string rootPath, string roleName, string runtime, string version) { string packagePath = Path.Combine(rootPath, roleName); string actualVersion; Assert.IsTrue(JavaScriptPackageHelpers.TryGetEngineVersion(packagePath, runtime, out actualVersion)); Assert.AreEqual(version, actualVersion, true); }