コード例 #1
0
        public void TestGetFabricVersion()
        {
            using (FabricLayoutInfo fabricLayoutInfo = new FabricLayoutInfo(this.imageStore))
            {
                string codePath, configPath, infrastructureManifestFilePath;
                fabricLayoutInfo.Create(out codePath, out configPath, out infrastructureManifestFilePath);

                ImageBuilderExeTestWrapper exeWrapper = new ImageBuilderExeTestWrapper(this.imageStore);

                string codeVersion, configVersion;
                int    exitCode = exeWrapper.GetFabricVersion(
                    codePath,
                    configPath,
                    out codeVersion,
                    out configVersion);

                Verify.AreEqual(exitCode, 0);
                Verify.AreEqual(codeVersion, fabricLayoutInfo.PatchVersion);
                Verify.AreEqual(configVersion, fabricLayoutInfo.ClusterManifest.Version);
            }
        }