Skip to content

Commit

Permalink
Break skill
Browse files Browse the repository at this point in the history
Revert #977 to check the tests added by #983 find the bug in the absence of a unit test.
  • Loading branch information
martincostello committed Dec 2, 2023
1 parent 69f8457 commit 0e1b3a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/LondonTravel.Skill/Models/Card.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.

using System.Text.Json.Serialization;

namespace MartinCostello.LondonTravel.Skill.Models;

[JsonDerivedType(typeof(LinkAccountCard))]
[JsonDerivedType(typeof(StandardCard))]
public abstract class Card
{
public abstract string Type { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion test/LondonTravel.Skill.Tests/SerializationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static void Can_Serialize_Response_With_Link_Account_Card()
card.EnumerateObject().Count().ShouldBe(1);
}

[Fact]
[Fact(Skip = "Intentionally broken.")]
public static void Can_Serialize_Response_With_Standard_Card()
{
// Arrange
Expand Down

0 comments on commit 0e1b3a4

Please sign in to comment.