Ejemplo n.º 1
0
        public void BothOnlyJotunn()
        {
            var clientVersionData = new ModCompatibility.ModuleVersionData(new System.Version(1, 0, 0), new List <Tuple <string, System.Version, CompatibilityLevel, VersionStrictness> >());
            var serverVersionData = new ModCompatibility.ModuleVersionData(new System.Version(1, 0, 0), new List <Tuple <string, System.Version, CompatibilityLevel, VersionStrictness> >());

            Assert.IsTrue(ModCompatibility.CompareVersionData(serverVersionData, clientVersionData));
        }
Ejemplo n.º 2
0
        public void ServerHasModButClientDoesntNeedIt()
        {
            var clientMods        = new List <Tuple <string, System.Version, CompatibilityLevel, VersionStrictness> >();
            var clientVersionData = new ModCompatibility.ModuleVersionData(new System.Version(1, 0, 0), clientMods);
            var serverMods        = new List <Tuple <string, System.Version, CompatibilityLevel, VersionStrictness> >
            {
                new Tuple <string, System.Version, CompatibilityLevel, VersionStrictness>("TestMod", new System.Version(1, 0, 0), CompatibilityLevel.ServerMustHaveMod, VersionStrictness.Minor)
            };
            var serverVersionData = new ModCompatibility.ModuleVersionData(new System.Version(1, 0, 0), serverMods);

            Assert.IsTrue(ModCompatibility.CompareVersionData(serverVersionData, clientVersionData));
        }