예제 #1
0
        public void PlugOptionsLongRunning()
        {
            var x = new PlugOptions
            {
                LongRunning = true,
                Block       = true
            };

            Assert.True(x.LongRunning);
            Assert.True(x.Block);
        }
예제 #2
0
        public void PlugOptionsSerialize()
        {
            var x = new PlugOptions
            {
                Block = true
            };
            var json1 = x.ToJSON();
            var json2 = LaraUI.JSON.Stringify(x);

            Assert.Equal(json1, json2);
        }
예제 #3
0
        public void PlugOptionsBlocking()
        {
            var settings = new EventSettings
            {
                BlockOptions = new BlockOptions
                {
                    BlockedElementId = "a",
                    ShowElementId    = "b",
                    ShowHtmlMessage  = "c"
                }
            };
            var x = new PlugOptions(settings);

            Assert.Equal("a", x.BlockElementId);
            Assert.Equal("b", x.BlockShownId);
            Assert.Equal("c", x.BlockHTML);
        }