We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d2c2e commit 8078313Copy full SHA for 8078313
WebApiClientCore.Test/HttpApiTest.cs
@@ -1,4 +1,5 @@
1
using System;
2
+using System.Linq;
3
using Xunit;
4
5
namespace WebApiClientCore.Test
@@ -39,11 +40,11 @@ public void GetAllApiMethodsTest()
39
40
var m2 = HttpApi.FindApiMethods(typeof(IMyApi));
41
42
Assert.False(object.ReferenceEquals(m1, m2));
- Assert.True(m1.Length == 3);
43
+ Assert.Equal(3, m1.Length);
44
45
var m3 = HttpApi.FindApiMethods(typeof(IPostNew));
- Assert.Single(m3);
46
- Assert.True(m3[0].IsDefined(typeof(NewAttribute), true));
+ Assert.Equal(2, m3.Length);
47
+ Assert.Contains(m3, i => i.IsDefined(typeof(NewAttribute), true));
48
}
49
50
0 commit comments