I am using Visual Studio Express 2012 in the release of Windows 8 Release Preview, and I cannot make my unit tests appear in the test explorer.
I have a class TestApp.Entity and TestApp.EntityTest ...
Here is my code:
namespace TestApp.Entity.Test { using System; using System.Net.Http; using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; using TestApp.Domain; [TestClass] public class EntityTests { [TestMethod] public async void TestObject1Deserialize() { Uri agencyUri = new Uri("*removed*"); HttpClient httpClient = new HttpClient(); HttpResponseMessage response = await httpClient.GetAsync(agencyUri); string responseBodyAsText = await response.Content.ReadAsStringAsync(); List<Agency> agencyList = Deserializers.AgencyDeserialize(responseBodyAsText); CollectionAssert.Contains(agencyList, new Agency() { Tag = "*removed*", Title = "*removed*", ShortTitle = "", RegionTitle = "*removed*" }); } } }
I assume that all I needed to do, but they still do not appear in the test explorer. Any advice would be helpful.
jyanks
source share