コード例 #1
0
        public void T012_EstateSettingsSimpleStorage_AccurateParameterSet()
        {
            TestHelpers.InMethod();

            EstateSettingsSimpleStorage(
                REGION_ID,
                DataTestUtil.STRING_MAX(1),
                DataTestUtil.UNSIGNED_INTEGER_MIN,
                DataTestUtil.FLOAT_ACCURATE,
                DataTestUtil.INTEGER_MIN,
                DataTestUtil.INTEGER_MIN,
                DataTestUtil.INTEGER_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.DOUBLE_ACCURATE,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.BOOLEAN_MIN,
                DataTestUtil.STRING_MAX(1),
                DataTestUtil.UUID_MIN
                );
        }
コード例 #2
0
        public void T011_EstateSettingsSimpleStorage_MaximumParameterSet()
        {
            TestHelpers.InMethod();

            EstateSettingsSimpleStorage(
                REGION_ID,
                DataTestUtil.STRING_MAX(64),
                DataTestUtil.UNSIGNED_INTEGER_MAX,
                DataTestUtil.FLOAT_MAX,
                DataTestUtil.INTEGER_MAX,
                DataTestUtil.INTEGER_MAX,
                DataTestUtil.INTEGER_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.DOUBLE_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.BOOLEAN_MAX,
                DataTestUtil.STRING_MAX(255),
                DataTestUtil.UUID_MAX
                );
        }
コード例 #3
0
        private void ValidateEstateSettings(
            EstateSettings estateSettings,
            string estateName,
            uint parentEstateID,
            float billableFactor,
            int pricePerMeter,
            int redirectGridX,
            int redirectGridY,
            bool useGlobalTime,
            bool fixedSun,
            double sunPosition,
            bool allowVoice,
            bool allowDirectTeleport,
            bool resetHomeOnTeleport,
            bool denyAnonymous,
            bool denyIdentified,
            bool denyTransacted,
            bool denyMinors,
            bool abuseEmailToEstateOwner,
            bool blockDwell,
            bool estateSkipScripts,
            bool taxFree,
            bool publicAccess,
            string abuseEmail,
            UUID estateOwner
            )
        {
            Assert.AreEqual(estateName, estateSettings.EstateName);
            Assert.AreEqual(parentEstateID, estateSettings.ParentEstateID);

            DataTestUtil.AssertFloatEqualsWithTolerance(billableFactor, estateSettings.BillableFactor);

            Assert.AreEqual(pricePerMeter, estateSettings.PricePerMeter);
            Assert.AreEqual(redirectGridX, estateSettings.RedirectGridX);
            Assert.AreEqual(redirectGridY, estateSettings.RedirectGridY);
            Assert.AreEqual(useGlobalTime, estateSettings.UseGlobalTime);
            Assert.AreEqual(fixedSun, estateSettings.FixedSun);

            DataTestUtil.AssertDoubleEqualsWithTolerance(sunPosition, estateSettings.SunPosition);

            Assert.AreEqual(allowVoice, estateSettings.AllowVoice);
            Assert.AreEqual(allowDirectTeleport, estateSettings.AllowDirectTeleport);
            Assert.AreEqual(resetHomeOnTeleport, estateSettings.ResetHomeOnTeleport);
            Assert.AreEqual(denyAnonymous, estateSettings.DenyAnonymous);
            Assert.AreEqual(denyIdentified, estateSettings.DenyIdentified);
            Assert.AreEqual(denyTransacted, estateSettings.DenyTransacted);
            Assert.AreEqual(denyMinors, estateSettings.DenyMinors);
            Assert.AreEqual(abuseEmailToEstateOwner, estateSettings.AbuseEmailToEstateOwner);
            Assert.AreEqual(blockDwell, estateSettings.BlockDwell);
            Assert.AreEqual(estateSkipScripts, estateSettings.EstateSkipScripts);
            Assert.AreEqual(taxFree, estateSettings.TaxFree);
            Assert.AreEqual(publicAccess, estateSettings.PublicAccess);
            Assert.AreEqual(abuseEmail, estateSettings.AbuseEmail);
            Assert.AreEqual(estateOwner, estateSettings.EstateOwner);
        }