mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Resolving merge conflicts
This commit is contained in:
@@ -47,17 +47,17 @@ public class ClipTests (ITestOutputHelper _output)
|
||||
view.Draw ();
|
||||
|
||||
// Only valid location w/in Viewport is 0, 0 (view) - 2, 2 (screen)
|
||||
Assert.Equal ((Rune)' ', Application.Driver?.Contents! [2, 2].Rune);
|
||||
Assert.Equal (" ", Application.Driver?.Contents! [2, 2].Grapheme);
|
||||
|
||||
// When we exit Draw, the view is excluded from the clip. So drawing at 0,0, is not valid and is clipped.
|
||||
view.AddRune (0, 0, Rune.ReplacementChar);
|
||||
Assert.Equal ((Rune)' ', Application.Driver?.Contents! [2, 2].Rune);
|
||||
Assert.Equal (" ", Application.Driver?.Contents! [2, 2].Grapheme);
|
||||
|
||||
view.AddRune (-1, -1, Rune.ReplacementChar);
|
||||
Assert.Equal ((Rune)'P', Application.Driver?.Contents! [1, 1].Rune);
|
||||
Assert.Equal ("P", Application.Driver?.Contents! [1, 1].Grapheme);
|
||||
|
||||
view.AddRune (1, 1, Rune.ReplacementChar);
|
||||
Assert.Equal ((Rune)'P', Application.Driver?.Contents! [3, 3].Rune);
|
||||
Assert.Equal ("P", Application.Driver?.Contents! [3, 3].Grapheme);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
||||
Reference in New Issue
Block a user