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