Fixed CM bugs. Added unit tests. Trying to figure out why TryGet is not working properly

This commit is contained in:
Tig
2024-11-22 11:03:02 -07:00
parent 655118738b
commit c2c5a37ca7
27 changed files with 376 additions and 140 deletions

View File

@@ -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 ()
{