diff --git a/test/isn.tests/UnitTest1.cs b/test/isn.tests/UnitTest1.cs index 1232930..5ebd0cd 100644 --- a/test/isn.tests/UnitTest1.cs +++ b/test/isn.tests/UnitTest1.cs @@ -69,7 +69,8 @@ dataTable.Rows.Add(dataRow); var model = await SourceHelpers.GetServerResourcesUsingWebRequestAsync("Http://localhost:88/index.json"); Console.WriteLine(JsonConvert.SerializeObject(model)); Assert.NotNull(model.Resources); - Assert.True(model.Resources.Any((r) => r.Type == "PackagePublish/2.0.0")); + var pub = model.Resources.FirstOrDefault((r) => r.Type == "PackagePublish/2.0.0"); + Assert.True(pub!=null); } }