Пример #1
0
        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));
        }
Пример #2
0
        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);
        }