Ejemplo n.º 1
0
        public void RelatedProductExcludesLanguages(string language, UpgradeAttributes attributes, int lcid,
                                                    bool expectedResult)
        {
            RelatedProduct rp = new()
            {
                Attributes = attributes,
                Language   = language
            };

            Assert.Equal(expectedResult, rp.ExcludesLanguage(lcid));
        }
Ejemplo n.º 2
0
        public void RelatedProductExcludesMaxVersion(string maxVersion, UpgradeAttributes attributes, string installedVersionValue,
                                                     bool expectedResult)
        {
            Version installedVersion = new Version(installedVersionValue);

            RelatedProduct rp = new()
            {
                Attributes = attributes,
                VersionMax = maxVersion == null ? null : new Version(maxVersion),
                VersionMin = null
            };

            Assert.Equal(expectedResult, rp.ExcludesMaxVersion(installedVersion));
        }