xUnit, ReSharper and Nested Classes Follow
Hello,
Why ReSharper does not display parent classes in the "Unit Test Explorer" and "Unit Test Sessions" windows ?
Here is an example.
<![CDATA[namespace EasyFront.Dependencies { using System; using Xunit; public class DependencyRegistrarTest { private static DependencyRegistrar CreateDependencyRegistrar() { return new DependencyRegistrar(); } public class IsRegistered { [Fact] public void Should_return_false_when_the_contract_does_not_exist() { // Arrange DependencyRegistrar registrar = CreateDependencyRegistrar(); Type contract = typeof(object); // Act bool registered = registrar.IsRegistered(contract); // Assert Assert.False(registered); } [Fact] public void Should_return_true_when_the_contract_exists() { // Arrange DependencyRegistrar registrar = CreateDependencyRegistrar(); Type contract = typeof(object); // Act bool registered = registrar.IsRegistered(contract); // Assert Assert.True(registered); } } } }]]>
Here is how it looks like.
Image:unittestsessions.jpg
Image:unittestexplorer.jpg
---
Original message URL: http://devnet.jetbrains.net/message/5452046#5452046
Please sign in to leave a comment.