public void SetValueBool_NotBoolType_ThrowsException() { string section = string.Empty; string name = string.Empty; string value = "1"; SiteOption.SiteOptionType type = SiteOption.SiteOptionType.Int; string description = string.Empty; SiteOption target = new SiteOption(DEFAULT_SITE_ID, section, name, value, type, description); try { target.SetValueBool(true); throw new Exception("SetValueBool should throw exception"); } catch (SiteOptionInvalidTypeException) { } }