Hello,
I'm trying to make use of the TypeFixture class and it's ending in
frustration due to a TargetParameterCountException. The tests take one
parameter, the interface under test. I'm using MbUnit.Framework.dll
v1.1.4322 (I believe I downloaded MbUnit 2.4). I get this exception in
the MbUnit runner, and in R# I get nothing but a fake "pass" status
with no tests run. For some other reason these tests won't run with
the MbUnit plugin for R# --> It just shows a "passed" status for the
fixture, but no actual tests are run, resulting in a false success.
I've seen this with other tests though so I'm thinking it's due to the
bugs in that plugin.
Here is the TypeFixture class and the ProviderFactory that ends in
disaster:
namespace Foo.Tests
{
[TypeFixture(typeof(IWebQueryInfo))]
[ProviderFactory(typeof(WebQueryInfoFactory),
typeof(IWebQueryInfo))]
public class IWebQueryInfoTests
{
[Test]
public void FormatNotNullOrBlank(IWebQueryInfo input)
{
Assert.IsFalse(input.Format.IsNullOrBlank(), "Format was
null or blank.");
}
[Test]
public void NamespaceNotNullOrBlank(IWebQueryInfo input)
{
Assert.IsFalse(input.Namespace.IsNullOrBlank(), "Namespace
was null or blank");
}
[Test]
public void VersionNotNullOrBlank(IWebQueryInfo input)
{
Assert.IsFalse(input.Version.IsNullOrBlank(), "Version was
null or blank");
}
}
}
public class WebQueryInfoFactory
{
public SomeWebQueryInfo Fake
{
get
{
return new SomeWebQueryInfo();
}
}
}
public class SomeWebQueryInfo : IWebQueryInfo
{
public string Format
{
get { return "Mock"; }
}
public string Version
{
get { return "Mock"; }
}
public string Namespace
{
get { return "Mock"; }
}
}
}
Does anyone know what's going on?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---