Skip to content

Commit

Permalink
Fix test (ignore obsolete warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Jul 2, 2021
1 parent 6d84b62 commit 92fcd8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tests/DIObjectGraphTypeTests/Graph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public class CGraphDescription : DIObjectGraphBase { }
[Fact]
public void GraphObsolete()
{
#pragma warning disable CS0618 // Member is obsolete
Configure<CGraphObsolete, object>().DeprecationReason.ShouldBe("TestDeprecationReason");
#pragma warning restore CS0618 // Member is obsolete
}

[Obsolete("TestDeprecationReason")]
Expand Down

0 comments on commit 92fcd8b

Please sign in to comment.