From 36c45a94cf93b17b7280fd8cf7aeb4dc7ee13bc5 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Mon, 26 Feb 2024 12:48:02 +0800 Subject: [PATCH] Fix test --- .../Model/ResourceEndpointHelpersTests.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Aspire.Dashboard.Tests/Model/ResourceEndpointHelpersTests.cs b/tests/Aspire.Dashboard.Tests/Model/ResourceEndpointHelpersTests.cs index c75e273368..9a102f625d 100644 --- a/tests/Aspire.Dashboard.Tests/Model/ResourceEndpointHelpersTests.cs +++ b/tests/Aspire.Dashboard.Tests/Model/ResourceEndpointHelpersTests.cs @@ -47,6 +47,14 @@ public void GetEndpoints_HasEndpointAndService_Results() services: [new ResourceServiceViewModel("Test", "localhost", 8080), new ResourceServiceViewModel("Test2", "localhost", 8083)])); Assert.Collection(endpoints, + e => + { + Assert.Equal("http://localhost:8081", e.Text); + Assert.Equal("ProxyUrl", e.Name); + Assert.Equal("http://localhost:8081", e.Url); + Assert.Equal("localhost", e.Address); + Assert.Equal(8081, e.Port); + }, e => { Assert.Equal("localhost:8080", e.Text); @@ -62,14 +70,6 @@ public void GetEndpoints_HasEndpointAndService_Results() Assert.Null(e.Url); Assert.Equal("localhost", e.Address); Assert.Equal(8083, e.Port); - }, - e => - { - Assert.Equal("http://localhost:8081", e.Text); - Assert.Equal("ProxyUrl", e.Name); - Assert.Equal("http://localhost:8081", e.Url); - Assert.Equal("localhost", e.Address); - Assert.Equal(8081, e.Port); }); }