Skip to content

Commit

Permalink
Fixed more unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
  • Loading branch information
WhitWaldo committed Jan 19, 2025
1 parent 80ea91f commit 0f8e58a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// ------------------------------------------------------------------------

using System;
using System.Linq;
using System.Threading.Tasks;
using Shouldly;
using Xunit;
Expand Down Expand Up @@ -94,9 +95,7 @@ public void InterfaceDescription_CreateGeneratesMethodDescriptions_WhenTypeHasTa
// Assert
description.Methods.ShouldNotBeNull();
description.Methods.ShouldBeOfType<MethodDescription[]>();
description.Methods.ShouldBeEquivalentTo(
new { Name = "GetInt" }
);
description.Methods.Select(m => new {m.Name}).ShouldBe(new[] {new {Name = "GetInt"}});
}

[Fact]
Expand All @@ -111,7 +110,7 @@ public void InterfaceDescription_CreateGeneratesMethodDescriptions_WhenTypeHasVo
// Assert
description.Methods.ShouldNotBeNull();
description.Methods.ShouldBeOfType<MethodDescription[]>();
description.Methods.ShouldBeEquivalentTo(new[] { new { Name = "GetString" }, new { Name = "MethodWithArguments" } });
description.Methods.Select(m => new {m.Name}).ShouldBe(new[] {new {Name = "GetString"}, new {Name="MethodWithArguments"}});
}

[Fact]
Expand Down

0 comments on commit 0f8e58a

Please sign in to comment.