Thanks, changed it to Filepath and it worked.

On 27 apr, 21:26, "Jeff Brown" <[email protected]> wrote:
> The attribute expects either a FilePath (a file relative to the test
> assembly directory) or a ResourcePath (an embedded resource relative to the
> test fixture type).
>
> When using ResourcePath be sure you have changed the Build Action property
> of the file to "Embedded Resource."
>
> Jeff.
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of Dave
> Sent: Monday, April 27, 2009 7:55 AM
> To: MbUnit.User
> Subject: MbUnit Gallio.Framework.Pattern.PatternUsageErrorException:
> [XmlDataAttribute] - Could not find manifest resource 'test'.
>
> Hi,
>
> I was testing the [XmlData] annotation to use in a future application.
> But I couldn't get it to work. (I get the
> "Gallio.Framework.Pattern.PatternUsageErrorException:
> [XmlDataAttribute] - Could not find manifest resource 'test'."
> errormessage)
>
> It's probably just a misplacement of my xml file, but I can't seem to find
> mush info anywhere. (currently it's under the "\TestUnitXMLTest \bin\Debug,
> but also tried "\TestUnitXMLTest\, and even my solution root (solution
> consists out of multiple projects))
>
> using System;
> using System.Collections.Generic;
> using System.Text;
> using Gallio.Framework;
> using MbUnit.Framework;
> using TestUnitXML;
>
> namespace TestUnitXMLTest
> {
>     public class TestUnitXMLTest
>     {
>         [Test]
>         [XmlData("//item", ResourcePath = "test.xml")]
>         public void ShoppingCartTotalWithSingleItem([Bind("@name")]
> string item, [Bind("unitPrice")] decimal unitPrice, [Bind("quantity")]
> decimal quantity)
>         {
>             ShoppingCart shoppingCart = new ShoppingCart();
>             shoppingCart.add(item, unitPrice, quantity);
>             Assert.AreEqual(unitPrice * quantity, shoppingCart.totalCost());
>         }
>     }
> }- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to