public void Test_AddFilter_Form_QueryByTotalWeight_incorrectXml(string data, bool expected) { string filename = "Test_LuggageWithoutTotalWeight.xml"; XDocument doc = XDocument.Load(filename); IEnumerable <XElement> xElem = doc.Root.Elements(); af = new AddFilter_Form(4, fm); af.QueryByTotalWeight(doc, data); Assert.AreEqual(expected, Common.BoolForUnitTest); }
[DataRow("12.12.2010", true)] //Одна дата public void Test_AddFilter_Form_QueryByDate(string data, bool expected) { string filename = "Test_Queries.xml"; XDocument doc = XDocument.Load(filename); IEnumerable <XElement> xElem = doc.Root.Elements(); af = new AddFilter_Form(3, fm); af.QueryByDate(doc, data); Assert.AreEqual(expected, Common.BoolForUnitTest); }