From: Oleg T. <he...@us...> - 2005-10-26 15:08:41
|
Update of /cvsroot/mvp-xml/Common/v2/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10046/v2/test Modified Files: CommonTest.csproj XPathSortBug.cs Log Message: Index: XPathSortBug.cs =================================================================== RCS file: /cvsroot/mvp-xml/Common/v2/test/XPathSortBug.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- XPathSortBug.cs 25 Oct 2005 21:33:44 -0000 1.1 +++ XPathSortBug.cs 26 Oct 2005 15:08:30 -0000 1.2 @@ -38,13 +38,14 @@ XPathExpression sort = nav.Compile("mvp:value"); sort.SetContext(ctx); - // Setting the sort *after* the context yields no results at all. + // Setting the sort *after* the context yields no results at all in .NET 1.X + // but works in .NET 2.0 XPathExpression items = nav.Compile("//mvp:item"); items.AddSort(sort, XmlSortOrder.Ascending, XmlCaseOrder.None, String.Empty, XmlDataType.Number); items.SetContext(ctx); XPathNodeIterator it = doc.CreateNavigator().Select(items); - Assert.IsFalse( it.MoveNext() ); + Assert.IsTrue( it.MoveNext() ); // The same code but setting the sort *after* the context works fine. items = nav.Compile("//mvp:item"); Index: CommonTest.csproj =================================================================== RCS file: /cvsroot/mvp-xml/Common/v2/test/CommonTest.csproj,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- CommonTest.csproj 25 Oct 2005 21:33:44 -0000 1.1 +++ CommonTest.csproj 26 Oct 2005 15:08:30 -0000 1.2 @@ -156,7 +156,6 @@ <SubType>Code</SubType> </Compile> <Content Include="changelog.txt" /> - <Content Include="issues.txt" /> <EmbeddedResource Include="library.xml" /> <EmbeddedResource Include="northwind.xml" /> <EmbeddedResource Include="pubs.xml" /> |