mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Initial commit. Just a prototype
This commit is contained in:
@@ -77,15 +77,15 @@ public class ThemeTests
|
||||
public void TestSerialize_RoundTrip ()
|
||||
{
|
||||
var theme = new ThemeScope ();
|
||||
theme ["Dialog.DefaultButtonAlignment"].PropertyValue = Dialog.ButtonAlignments.Right;
|
||||
theme ["Dialog.DefaultButtonAlignment"].PropertyValue = ViewAlignments.Right;
|
||||
|
||||
string json = JsonSerializer.Serialize (theme, _jsonOptions);
|
||||
|
||||
var deserialized = JsonSerializer.Deserialize<ThemeScope> (json, _jsonOptions);
|
||||
|
||||
Assert.Equal (
|
||||
Dialog.ButtonAlignments.Right,
|
||||
(Dialog.ButtonAlignments)deserialized ["Dialog.DefaultButtonAlignment"].PropertyValue
|
||||
ViewAlignments.Right,
|
||||
(ViewAlignments)deserialized ["Dialog.DefaultButtonAlignment"].PropertyValue
|
||||
);
|
||||
Reset ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user