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());
        }
    }
}
--~--~---------~--~----~------------~-------~--~----~
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