Skip to content

Commit

Permalink
Corrected casing for MudComboBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Jangli authored and Jeffrey Jangli committed Oct 22, 2023
1 parent a35e866 commit 04bcf71
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
56 changes: 28 additions & 28 deletions CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace MudExtensions.UnitTests.Components
{
[TestFixture]
public class ComboboxTests : BunitTest
public class ComboBoxTests : BunitTest
{


Expand All @@ -23,9 +23,9 @@ public class ComboboxTests : BunitTest
[Test]
[TestCase(false)]
//[TestCase(true)]
public void Combobox_InitialValueTest(bool multiSelection)
public void ComboBox_InitialValueTest(bool multiSelection)
{
var comp = Context.RenderComponent<ComboboxInitialValueTest>(x =>
var comp = Context.RenderComponent<ComboBoxInitialValueTest>(x =>

Check failure on line 28 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

The type or namespace name 'ComboBoxInitialValueTest' could not be found (are you missing a using directive or an assembly reference?)
{
x.Add(c => c.SelectedValue, "1");
x.Add(c => c.MultiSelection, multiSelection);

Check failure on line 31 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

Argument 2: cannot convert from 'bool' to 'string'
Expand All @@ -42,9 +42,9 @@ public void Combobox_InitialValueTest(bool multiSelection)
[Test]
//[TestCase(false)]
[TestCase(true)]
public void Combobox_InitialValuesTest(bool multiSelection)
public void ComboBox_InitialValuesTest(bool multiSelection)
{
var comp = Context.RenderComponent<ComboboxInitialValueTest>(x =>
var comp = Context.RenderComponent<ComboBoxInitialValueTest>(x =>

Check failure on line 47 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

The type or namespace name 'ComboBoxInitialValueTest' could not be found (are you missing a using directive or an assembly reference?)
{
x.Add(c => c.SelectedValues, new HashSet<string>() { "1" });

Check failure on line 49 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

Argument 2: cannot convert from 'System.Collections.Generic.HashSet<string>' to 'string'
x.Add(c => c.MultiSelection, multiSelection);

Check failure on line 50 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

Argument 2: cannot convert from 'bool' to 'string'
Expand All @@ -57,9 +57,9 @@ public void Combobox_InitialValuesTest(bool multiSelection)
}

[Test]
public async Task Combobox_ValueBubblingTest()
public async Task ComboBox_ValueBubblingTest()
{
var comp = Context.RenderComponent<ComboboxInitialValueTest>();
var comp = Context.RenderComponent<ComboBoxInitialValueTest>();

Check failure on line 62 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

The type or namespace name 'ComboBoxInitialValueTest' could not be found (are you missing a using directive or an assembly reference?)
var combobox = comp.FindComponent<MudComboBox<string>>();

combobox.Instance.Value.Should().BeNull();
Expand All @@ -80,9 +80,9 @@ public async Task Combobox_ValueBubblingTest()
}

[Test]
public void Combobox_ValueBubblingTest_MultiSelection()
public void ComboBox_ValueBubblingTest_MultiSelection()
{
var comp = Context.RenderComponent<ComboboxInitialValueTest>(x =>
var comp = Context.RenderComponent<ComboBoxInitialValueTest>(x =>

Check failure on line 85 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

The type or namespace name 'ComboBoxInitialValueTest' could not be found (are you missing a using directive or an assembly reference?)
{
x.Add(c => c.MultiSelection, true);

Check failure on line 87 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

Argument 2: cannot convert from 'bool' to 'string'
});
Expand All @@ -103,9 +103,9 @@ public void Combobox_ValueBubblingTest_MultiSelection()
}

[Test]
public async Task Combobox_ValueChangeEventCountTest()
public async Task ComboBox_ValueChangeEventCountTest()
{
var comp = Context.RenderComponent<ComboboxEventCountTest>(x =>
var comp = Context.RenderComponent<ComboBoxEventCountTest>(x =>

Check failure on line 108 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

The type or namespace name 'ComboBoxEventCountTest' could not be found (are you missing a using directive or an assembly reference?)
{
x.Add(c => c.MultiSelection, false);

Check failure on line 110 in CodeBeam.MudBlazor.Extensions.UnitTests/Components/ComboboxTests.cs

View workflow job for this annotation

GitHub Actions / 🎉 Deploy

Argument 2: cannot convert from 'bool' to 'string'
});
Expand All @@ -130,9 +130,9 @@ public async Task Combobox_ValueChangeEventCountTest()
}

[Test]
public async Task Combobox_ValueChangeEventCountTest_MultiSelection()
public async Task ComboBox_ValueChangeEventCountTest_MultiSelection()
{
var comp = Context.RenderComponent<ComboboxEventCountTest>(x =>
var comp = Context.RenderComponent<ComboBoxEventCountTest>(x =>
{
x.Add(c => c.MultiSelection, true);
});
Expand All @@ -156,9 +156,9 @@ public async Task Combobox_ValueChangeEventCountTest_MultiSelection()
/// Click should open the Menu and selecting a value should update the bindable value.
/// </summary>
[Test]
public async Task ComboboxTest1()
public async Task ComboBoxTest1()
{
var comp = Context.RenderComponent<ComboboxTest1>();
var comp = Context.RenderComponent<ComboBoxTest1>();
// print the generated html
//Console.WriteLine(comp.Markup);
// select elements needed for the test
Expand Down Expand Up @@ -196,9 +196,9 @@ public async Task ComboboxTest1()
}

[Test]
public async Task ComboboxClearableTest()
public async Task ComboBoxClearableTest()
{
var comp = Context.RenderComponent<ComboboxClearableTest>();
var comp = Context.RenderComponent<ComboBoxClearableTest>();
var combobox = comp.FindComponent<MudComboBox<string>>();
var input = comp.Find("div.mud-input-control");

Expand All @@ -224,7 +224,7 @@ public async Task ComboboxClearableTest()
[Test]
public void MultiSelect_SelectAll()
{
var comp = Context.RenderComponent<ComboboxMultiSelectTest2>();
var comp = Context.RenderComponent<ComboBoxMultiSelectTest2>();
// select element needed for the test
var combobox = comp.FindComponent<MudComboBox<string>>();
var menu = comp.Find("div.mud-popover");
Expand All @@ -245,9 +245,9 @@ public void MultiSelect_SelectAll()
}

[Test]
public async Task Combobox_MultiSelectEditable()
public async Task ComboBox_MultiSelectEditable()
{
var comp = Context.RenderComponent<ComboboxMultiSelectEditableTest>();
var comp = Context.RenderComponent<ComboBoxMultiSelectEditableTest>();
// print the generated html
Console.WriteLine(comp.Markup);
// select elements needed for the test
Expand Down Expand Up @@ -275,9 +275,9 @@ public async Task Combobox_MultiSelectEditable()
/// Click should not close the menu and selecting multiple values should update the bindable value with a comma separated list.
/// </summary>
[Test]
public async Task Combobox_MultiSelectTest1()
public async Task ComboBox_MultiSelectTest1()
{
var comp = Context.RenderComponent<ComboboxMultiSelectTest1>();
var comp = Context.RenderComponent<ComboBoxMultiSelectTest1>();
// print the generated html
Console.WriteLine(comp.Markup);
// select elements needed for the test
Expand Down Expand Up @@ -333,9 +333,9 @@ await comp.InvokeAsync(() =>
}

[Test]
public async Task ComboboxTest_KeyboardNavigation_SingleSelect()
public async Task ComboBoxTest_KeyboardNavigation_SingleSelect()
{
var comp = Context.RenderComponent<ComboboxTest1>();
var comp = Context.RenderComponent<ComboBoxTest1>();
// print the generated html
//Console.WriteLine(comp.Markup);
// select elements needed for the test
Expand Down Expand Up @@ -420,9 +420,9 @@ public async Task ComboboxTest_KeyboardNavigation_SingleSelect()
}

[Test]
public async Task ComboboxTest_KeyboardNavigation_ToggleSelect()
public async Task ComboBoxTest_KeyboardNavigation_ToggleSelect()
{
var comp = Context.RenderComponent<ComboboxTest1>();
var comp = Context.RenderComponent<ComboBoxTest1>();
var combobox = comp.FindComponent<MudComboBox<string>>().Instance;
combobox.ToggleSelection = true;
await comp.InvokeAsync(() => combobox.HandleKeyDown(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", }));
Expand All @@ -441,9 +441,9 @@ public async Task ComboboxTest_KeyboardNavigation_ToggleSelect()
}

[Test]
public async Task ComboboxTest_KeyboardNavigation_MultiSelect()
public async Task ComboBoxTest_KeyboardNavigation_MultiSelect()
{
var comp = Context.RenderComponent<ComboboxMultiSelectTest3>();
var comp = Context.RenderComponent<ComboBoxMultiSelectTest3>();
var combobox = comp.FindComponent<MudComboBox<string>>();

await comp.InvokeAsync(() => combobox.Instance.HandleKeyDown(new KeyboardEventArgs() { Key = " ", Type = "keydown", }));
Expand Down
4 changes: 2 additions & 2 deletions ComponentViewer.Docs/Pages/Examples/ComboboxExample1.razor
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@

<MudItem xs="12" sm="4">
<MudStack Spacing="4">
<MudText>Item Count: @_combobox?.Items.Count</MudText>
<MudText>Item Count: @(_combobox?.Items.Count ?? 0)</MudText>
<MudText>Value: @_value</MudText>
<MudText>Text: @_text</MudText>
<MudText>Selected Values (@(_selectedValues?.Count())): @(string.Join(", ", _selectedValues ?? new List<string>()))</MudText>
<MudText>Selected Values (@(_selectedValues?.Count() ?? 0)): @(string.Join(", ", _selectedValues ?? new List<string>()))</MudText>
<MudSelectExtended @bind-Value="_margin" ItemCollection="@(Enum.GetValues<Margin>())" Variant="Variant.Outlined" Label="Margin" Margin="Margin.Dense" Dense="true" />
<MudSelectExtended @bind-Value="_dense" ItemCollection="@(Enum.GetValues<Dense>())" Variant="Variant.Outlined" Label="Dense" Margin="Margin.Dense" Dense="true" />
<MudSelectExtended @bind-Value="_color" ItemCollection="@(Enum.GetValues<Color>())" Variant="Variant.Outlined" Label="Color" Margin="Margin.Dense" Dense="true" />
Expand Down

0 comments on commit 04bcf71

Please sign in to comment.