~marcustomlinson/unity-scopes-api/fix-clang-warnings

« back to all changes in this revision

Viewing changes to test/gtest/scopes/ValueSliderFilter/ValueSliderFilter_test.cpp

  • Committer: Tarmac
  • Author(s): Pawel Stolowski
  • Date: 2015-11-16 11:01:57 UTC
  • mfrom: (639.2.3 filters-changes)
  • Revision ID: tarmac-20151116110157-sdb24wznwxxlg8cp
Only allow Primary flag to be set for single-selection OptionSelector (throw for others).

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    EXPECT_EQ(100.0f, filter1->max());
84
84
    EXPECT_EQ(ValueSliderFilter::SliderType::LessThan, filter1->slider_type());
85
85
}
 
86
 
 
87
TEST(ValueSliderFilter, display_hints)
 
88
{
 
89
    auto filter = ValueSliderFilter::create("f1", "Max size", "Less than %1", 1.0f, 100.0f);
 
90
    EXPECT_THROW(filter->set_display_hints(FilterBase::DisplayHints::Primary), unity::InvalidArgumentException);
 
91
}