Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos committed Mar 18, 2021
1 parent 121ab6a commit 0409e97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Editor/EditorHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public partial class EditorHandler
public static PropertyMapper<IEditor, EditorHandler> EditorMapper = new PropertyMapper<IEditor, EditorHandler>(ViewHandler.ViewMapper)
{
[nameof(IEditor.Text)] = MapText,
[nameof(ILabel.Font)] = MapFont
[nameof(IEditor.Font)] = MapFont
};

public EditorHandler() : base(EditorMapper)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ string GetNativeText(EditorHandler editorHandler) =>
[InlineData("Dokdo")]
public async Task FontFamilyInitializesCorrectly(string family)
{
var label = new EditorStub()
var editor = new EditorStub()
{
Text = "Test",
Font = Font.OfSize(family, 10)
};

var handler = await CreateHandlerAsync(label);
var handler = await CreateHandlerAsync(editor);
var nativeEditor = GetNativeEditor(handler);

var fontManager = App.Services.GetRequiredService<IFontManager>();
Expand Down

0 comments on commit 0409e97

Please sign in to comment.