lishijie211 / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Gallio doesn't find and run Test Methods on static Classes #902

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new C# library project
2. Add xunit via nuget (1.9.1.1600 used for testing)
3. Add an compile the following code
 public static class Class1
    {
        [Fact]
        public static void MethodName()
        {
            Assert.True( false );
        }
    }
4. Open compiled dll in Gallio Icarus. No test methods are found.

What is the expected output? What do you see instead?
Class1.MethodName is found as a valid xunit test method.

This is big trouble for people that want to run F# xunit tests via gallio. The 
easiest way to write these tests is as members on a module, which is compiled 
to a static class.

Note that the xUnit runner handles these tests just fine, as does the xunit 
VisualStudio Runner extension.

Original issue reported on code.google.com by jojo.rudolph@googlemail.com on 1 Nov 2012 at 9:05