public void PlugOptionsLongRunning() { var x = new PlugOptions { LongRunning = true, Block = true }; Assert.True(x.LongRunning); Assert.True(x.Block); }
public void PlugOptionsSerialize() { var x = new PlugOptions { Block = true }; var json1 = x.ToJSON(); var json2 = LaraUI.JSON.Stringify(x); Assert.Equal(json1, json2); }
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); }