mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixed CM bugs. Added unit tests. Trying to figure out why TryGet is not working properly
This commit is contained in:
@@ -52,6 +52,20 @@ public class KeyJsonConverterTests
|
||||
Assert.Equal (expectedStringTo, deserializedKey.ToString ());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Deserialized_Key_Equals ()
|
||||
{
|
||||
// Arrange
|
||||
Key key = Key.Q.WithCtrl;
|
||||
|
||||
// Act
|
||||
string json = """Ctrl+Q""";
|
||||
Key deserializedKey = JsonSerializer.Deserialize<Key> (json, ConfigurationManager._serializerOptions);
|
||||
|
||||
// Assert
|
||||
Assert.Equal (key, deserializedKey);
|
||||
|
||||
}
|
||||
[Fact]
|
||||
public void Separator_Property_Serializes_As_Glyph ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user