diff --git a/src/Hyperion.Tests/Bugfix117Tests.cs b/src/Hyperion.Tests/Bugfix117Tests.cs new file mode 100644 index 00000000..b64dd991 --- /dev/null +++ b/src/Hyperion.Tests/Bugfix117Tests.cs @@ -0,0 +1,20 @@ + +using System; +using System.Drawing; +using Xunit; +using Xunit.Abstractions; + +namespace Hyperion.Tests{ + public class Bugfix117Tests : TestBase + { + [Fact] + public void CanSerializeColor() + { + var expected = Color.Aquamarine; + Serialize(expected); + Reset(); + var actual = Deserialize(); + Assert.Equal(expected, actual); + } + } +} diff --git a/src/Hyperion.Tests/Bugs.cs b/src/Hyperion.Tests/Bugs.cs index ebd9f562..d29257e8 100644 --- a/src/Hyperion.Tests/Bugs.cs +++ b/src/Hyperion.Tests/Bugs.cs @@ -218,7 +218,6 @@ public void CanSerializeUri() Assert.Equal(stream.Length, stream.Position); } - public class SnapshotSelectionCriteria { public static SnapshotSelectionCriteria Latest { get; set; } = new SnapshotSelectionCriteria()