Commit 17e0251
Changed files (2)
product
Gorilla.Commons.Windows.Forms
product/Gorilla.Commons.Windows.Forms/Helpers/BindableListBoxSpecs.cs
@@ -8,6 +8,7 @@ namespace Gorilla.Commons.Windows.Forms.Helpers
{
}
+ [Concern(typeof(BindableListBox<>))]
public class behaves_like_bindable_list : concerns_for<IBindableList<string>, BindableListBox<string>>
{
context c = () => { control = the_dependency<IListControl<string>>(); };
@@ -15,6 +16,7 @@ namespace Gorilla.Commons.Windows.Forms.Helpers
static protected IListControl<string> control;
}
+ [Concern(typeof(BindableListBox<>))]
public class when_binding_a_bunch_of_items_to_a_list_control : behaves_like_bindable_list
{
it should_add_each_item_to_the_list_control = () =>
@@ -26,6 +28,7 @@ namespace Gorilla.Commons.Windows.Forms.Helpers
because b = () => sut.bind_to(new List<string> {"timone", "pumba",});
}
+ [Concern(typeof(BindableListBox<>))]
public class when_assigning_the_selected_item_of_a_list_control : behaves_like_bindable_list
{
it should_tell_the_list_control_to_select_that_item =
@@ -34,6 +37,7 @@ namespace Gorilla.Commons.Windows.Forms.Helpers
because b = () => sut.set_selected_item("arthur");
}
+ [Concern(typeof(BindableListBox<>))]
public class when_getting_the_selected_item_from_a_list_control : behaves_like_bindable_list
{
it should_return_the_selected_item = () => result.should_be_equal_to("curious george");
product/Gorilla.Commons.Windows.Forms/Gorilla.Commons.Windows.Forms.csproj
@@ -80,6 +80,8 @@
<Compile Include="Helpers\BindableListBoxSpecs.cs" />
<Compile Include="Helpers\BindableListExtensions.cs" />
<Compile Include="Helpers\BindableListFactory.cs" />
+ <Compile Include="Helpers\BindableTextBox.cs" />
+ <Compile Include="Helpers\BindableTextBoxSpecs.cs" />
<Compile Include="Helpers\BitmapRegion.cs" />
<Compile Include="Helpers\ButtonExtensions.cs" />
<Compile Include="Helpers\ComboBoxListControl.cs" />
@@ -94,8 +96,11 @@
<Compile Include="Helpers\IBindableList.cs" />
<Compile Include="Helpers\IEventTarget.cs" />
<Compile Include="Helpers\IListControl.cs" />
+ <Compile Include="Helpers\ITextControl.cs" />
<Compile Include="Helpers\ListBoxListControl.cs" />
<Compile Include="Helpers\SuspendLayout.cs" />
+ <Compile Include="Helpers\TextControl.cs" />
+ <Compile Include="Helpers\TextControlSpecs.cs" />
<Compile Include="Keyboard\ShortcutKey.cs" />
<Compile Include="Keyboard\ShortcutKeys.cs" />
<Compile Include="Resources\ApplicationIcon.cs" />