Skip to content

Commit 8078313

Browse files
committed
Update test
1 parent f7d2c2e commit 8078313

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

WebApiClientCore.Test/HttpApiTest.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Linq;
23
using Xunit;
34

45
namespace WebApiClientCore.Test
@@ -39,11 +40,11 @@ public void GetAllApiMethodsTest()
3940
var m2 = HttpApi.FindApiMethods(typeof(IMyApi));
4041

4142
Assert.False(object.ReferenceEquals(m1, m2));
42-
Assert.True(m1.Length == 3);
43+
Assert.Equal(3, m1.Length);
4344

4445
var m3 = HttpApi.FindApiMethods(typeof(IPostNew));
45-
Assert.Single(m3);
46-
Assert.True(m3[0].IsDefined(typeof(NewAttribute), true));
46+
Assert.Equal(2, m3.Length);
47+
Assert.Contains(m3, i => i.IsDefined(typeof(NewAttribute), true));
4748
}
4849
}
4950
}

0 commit comments

Comments
 (0)