// support methods private void InitializeControls() { HTML.Text = Generator.GetBootstrapHtml(_currentOptions); HTMLType.Text = _currentInfo.GetIsBootstrapString(); ImgAsset.Text = _currentOptions.GetImageAssetString(); Page.Text = _currentOptions.PageName; Project.Text = _currentOptions.BlazorProjectPath; ProjectType.Text = Options.GetProjectTypeString(_currentInfo.ProjectType); if (_currentInfo.ProjectType == Type_Options.BlazorServer) { RenderMode.Text = _currentOptions.GetRenderModeString(); } else { RenderMode.Text = "Not appliable"; } if (_currentInfo.IsWebAssembly() == true) { if (_currentOptions.IsCSSOptionsWebassemblyAllowed() == true) { CSSIsolation.Text = "Custom CSS is shared between pages"; } else { CSSIsolation.Text = "Not supported"; } } else { CSSIsolation.Text = "Limited"; } Scripts.Text = _currentInfo.ScriptAssets.Count.ToString(); Embedded.Text = _currentInfo.MultiLineScriptCount.ToString(); }
public void GetIsBootstrapString_OtherTest() { DataInfo info = new DataInfo { IsBootstrapHtml = false }; string expected = "Other"; string actual = info.GetIsBootstrapString(); Assert.AreEqual(expected, actual); }
public void GetIsBootstrapString_BootstrapTest() { DataInfo info = new DataInfo { IsBootstrapHtml = true }; string expected = "Bootstrap"; string actual = info.GetIsBootstrapString(); Assert.AreEqual(expected, actual); }