Initial commit. Just a prototype

This commit is contained in:
Tig
2024-04-17 12:51:19 -06:00
parent b2da2d6848
commit 4ed5ed8bb6
10 changed files with 242 additions and 140 deletions

View File

@@ -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 ();
}