Update of /cvsroot/mvp-xml/EXSLT/v1/test/ExsltTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29285/v1/test/ExsltTest Added Files: .cvsignore AssemblyInfo.cs AvailabilityTest.cmd ExsltCommonTests.cs ExsltDatesAndTimesTests.cs ExsltMathTests.cs ExsltRandomTests.cs ExsltRegularExpressionsTests.cs ExsltSetsTests.cs ExsltStringsTests.cs ExsltTest.cs ExsltTest.csproj ExsltTest.csproj.user ExsltTest.csproj.vspscc ExsltTest.dll ExsltTest.exe ExsltUnitTests.cs FunctionsAvailability.html GDNDatesAndTimesTests.cs GDNDynamicTests.cs GDNMathTests.cs GDNRegularExpressionsTests.cs GDNSetsTests.cs GDNStringsTests.cs Makefile Mvp.Xml.Exslt.dll Log Message: --- NEW FILE: .cvsignore --- bin obj *.user *.suo *.dll *.pdb *.exe --- NEW FILE: ExsltRegularExpressionsTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for EXSLT RegularExpressions module functions. /// </summary> [TestFixture] public class ExsltRegularExpressionsTests : ExsltUnitTests { protected override string TestDir { get { return "tests/EXSLT/RegularExpressions/"; } } protected override string ResultsDir { get { return "results/EXSLT/RegularExpressions/"; } } /// <summary> /// Tests the following function: /// regexp:test() /// </summary> [Test] public void TestTest() { RunAndCompare("source.xml", "test.xslt", "test.xml"); } /// <summary> /// Tests the following function: /// regexp:match() /// </summary> [Test] public void MatchTest() { RunAndCompare("source.xml", "match.xslt", "match.xml"); } /// <summary> /// Tests the following function: /// regexp:replace() /// </summary> [Test] public void ReplaceTest() { RunAndCompare("source.xml", "replace.xslt", "replace.xml"); } } } --- NEW FILE: ExsltTest.csproj.vspscc --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ExsltTest.exe --- (This appears to be a binary file; contents omitted.) --- NEW FILE: GDNDynamicTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for GotDotNet Dynamic module functions. /// </summary> [TestFixture] public class GDNDynamicTests : ExsltUnitTests { protected override string TestDir { get { return "tests/GotDotNet/Dynamic/"; } } protected override string ResultsDir { get { return "results/GotDotNet/Dynamic/"; } } /// <summary> /// Tests the following function: /// dyn2:evaluate() /// </summary> [Test] public void EvaluateTest() { RunAndCompare("source.xml", "evaluate.xslt", "evaluate.xml"); } } } --- NEW FILE: Makefile --- all: @echo off @echo ########### Builds Exslt library... cd ..\Exslt nmake @echo ########### Builds ExsltTest utility... cd ..\ExsltTest csc /r:..\Exslt\GotDotNet.Exslt.dll /out:ExsltTest.exe /target:exe ExsltTest.cs /debug- /optimize+ copy ..\Exslt\GotDotNet.Exslt.dll GotDotNet.Exslt.dll --- NEW FILE: GDNStringsTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for GotDotNet Strings module functions. /// </summary> [TestFixture] public class GDNStringsTests : ExsltUnitTests { protected override string TestDir { get { return "tests/GotDotNet/Strings/"; } } protected override string ResultsDir { get { return "results/GotDotNet/Strings/"; } } /// <summary> /// Tests the following function: /// str2:lowercase() /// </summary> [Test] public void LowercaseTest() { RunAndCompare("source.xml", "lowercase.xslt", "lowercase.xml"); } /// <summary> /// Tests the following function: /// str2:uppercase() /// </summary> [Test] public void UppercaseTest() { RunAndCompare("source.xml", "uppercase.xslt", "uppercase.xml"); } } } --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.*")] // // In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // // Use the attributes below to control which key is used for signing. // // Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. // (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. // (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [assembly: AssemblyKeyName("")] --- NEW FILE: ExsltStringsTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for EXSLT Strings module functions. /// </summary> [TestFixture] public class ExsltStringsTests : ExsltUnitTests { protected override string TestDir { get { return "tests/EXSLT/Strings/"; } } protected override string ResultsDir { get { return "results/EXSLT/Strings/"; } } /// <summary> /// Tests the following function: /// str:tokenize() /// </summary> [Test] public void TokenizeTest() { RunAndCompare("source.xml", "tokenize.xslt", "tokenize.xml"); } /// <summary> /// Tests the following function: /// str:replace() /// </summary> [Test] public void ReplaceTest() { RunAndCompare("source.xml", "replace.xslt", "replace.xml"); } /// <summary> /// Tests the following function: /// str:padding() /// </summary> [Test] public void PaddingTest() { RunAndCompare("source.xml", "padding.xslt", "padding.xml"); } /// <summary> /// Tests the following function: /// str:align() /// </summary> [Test] public void AlignTest() { RunAndCompare("source.xml", "align.xslt", "align.xml"); } /// <summary> /// Tests the following function: /// str:encode-uri() /// </summary> [Test] public void EncodeUriTest() { RunAndCompare("source.xml", "encode-uri.xslt", "encode-uri.xml"); } /// <summary> /// Tests the following function: /// str:decode-uri() /// </summary> [Test] public void DecodeUriTest() { RunAndCompare("source.xml", "decode-uri.xslt", "decode-uri.xml"); } /// <summary> /// Tests the following function: /// str:concat() /// </summary> [Test] public void ConcatTest() { RunAndCompare("source.xml", "concat.xslt", "concat.xml"); } /// <summary> /// Tests the following function: /// str:split() /// </summary> [Test] public void SplitTest() { RunAndCompare("source.xml", "split.xslt", "split.xml"); } } } --- NEW FILE: GDNRegularExpressionsTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for GotDotNet RegularExpressions module functions. /// </summary> [TestFixture] public class GDNRegularExpressionsTests : ExsltUnitTests { protected override string TestDir { get { return "tests/GotDotNet/RegularExpressions/"; } } protected override string ResultsDir { get { return "results/GotDotNet/RegularExpressions/"; } } /// <summary> /// Tests the following function: /// regexp2:tokenize() /// </summary> [Test] public void TokenizeTest() { RunAndCompare("source.xml", "tokenize.xslt", "tokenize.xml"); } } } --- NEW FILE: ExsltRandomTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for EXSLT Random module functions. /// </summary> [TestFixture] public class ExsltRandomTests : ExsltUnitTests { protected override string TestDir { get { return "tests/EXSLT/Random/"; } } protected override string ResultsDir { get { return "results/EXSLT/Random/"; } } /// <summary> /// Tests the following function: /// random:random-sequence() /// </summary> [Test] public void RandomSequenceTest() { RunAndCompare("source.xml", "random-sequence.xslt", "random-sequence.xml"); } } } --- NEW FILE: GDNSetsTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for GotDotNet Sets module functions. /// </summary> [TestFixture] public class GDNSetsTests : ExsltUnitTests { protected override string TestDir { get { return "tests/GotDotNet/Sets/"; } } protected override string ResultsDir { get { return "results/GotDotNet/Sets/"; } } /// <summary> /// Tests the following function: /// set2:subset() /// </summary> [Test] public void SubsetTest() { RunAndCompare("source.xml", "subset.xslt", "subset.xml"); } } } --- NEW FILE: ExsltTest.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: FunctionsAvailability.html --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ExsltTest.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\EXSLT.NET\Exslt\;D:\projects\Mvp.Xml\EXSLT\v1\src\Exslt\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> --- NEW FILE: ExsltSetsTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for EXSLT Sets module functions. /// </summary> [TestFixture] public class ExsltSetsTests : ExsltUnitTests { protected override string TestDir { get { return "tests/EXSLT/Sets/"; } } protected override string ResultsDir { get { return "results/EXSLT/Sets/"; } } /// <summary> /// Tests the following function: /// set:difference() /// </summary> [Test] public void DifferenceTest() { RunAndCompare("source.xml", "difference.xslt", "difference.xml"); } /// <summary> /// Tests the following function: /// set:intersection() /// </summary> [Test] public void IntersectionTest() { RunAndCompare("source.xml", "intersection.xslt", "intersection.xml"); } /// <summary> /// Tests the following function: /// set:distinct() /// </summary> [Test] public void DistinctTest() { RunAndCompare("source.xml", "distinct.xslt", "distinct.xml"); } /// <summary> /// Tests the following function: /// set:has-same-node() /// </summary> [Test] public void HasSameNodeTest() { RunAndCompare("source.xml", "has-same-node.xslt", "has-same-node.xml"); } /// <summary> /// Tests the following function: /// set:leading() /// </summary> [Test] public void LeadingTest() { RunAndCompare("source.xml", "leading.xslt", "leading.xml"); } /// <summary> /// Tests the following function: /// set:trailing() /// </summary> [Test] public void TrailingTest() { RunAndCompare("source.xml", "trailing.xslt", "trailing.xml"); } } } --- NEW FILE: Mvp.Xml.Exslt.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: GDNDatesAndTimesTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for GotDotNet Dates and Times module functions. /// </summary> [TestFixture] public class GDNDatesAndTimesTests : ExsltUnitTests { protected override string TestDir { get { return "tests/GotDotNet/DatesAndTimes/"; } } protected override string ResultsDir { get { return "results/GotDotNet/DatesAndTimes/"; } } /// <summary> /// Tests the following function: /// date2:avg() /// </summary> [Test] public void AvgTest() { RunAndCompare("source.xml", "avg.xslt", "avg.xml"); } /// <summary> /// Tests the following function: /// date2:min() /// </summary> [Test] public void MinTest() { RunAndCompare("source.xml", "min.xslt", "min.xml"); } /// <summary> /// Tests the following function: /// date2:max() /// </summary> [Test] public void MaxTest() { RunAndCompare("source.xml", "max.xslt", "max.xml"); } /// <summary> /// Tests the following function: /// date2:day-name() /// </summary> [Test] public void DayNameTest() { RunAndCompare("source.xml", "day-name.xslt", "day-name.xml"); } /// <summary> /// Tests the following function: /// date2:day-abbreviation() /// </summary> [Test] public void DayAbbreviationTest() { RunAndCompare("source.xml", "day-abbreviation.xslt", "day-abbreviation.xml"); } /// <summary> /// Tests the following function: /// date2:month-name() /// </summary> [Test] public void MonthNameTest() { RunAndCompare("source.xml", "month-name.xslt", "month-name.xml"); } /// <summary> /// Tests the following function: /// date2:month-abbreviation() /// </summary> [Test] public void MonthAbbreviationTest() { RunAndCompare("source.xml", "month-abbreviation.xslt", "month-abbreviation.xml"); } } } --- NEW FILE: GDNMathTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for GotDotNet Math module functions. /// </summary> [TestFixture] public class GDNMathTests : ExsltUnitTests { protected override string TestDir { get { return "tests/GotDotNet/Math/"; } } protected override string ResultsDir { get { return "results/GotDotNet/Math/"; } } /// <summary> /// Tests the following function: /// math2:avg() /// </summary> [Test] public void AvgTest() { RunAndCompare("source.xml", "avg.xslt", "avg.xml"); } } } --- NEW FILE: AvailabilityTest.cmd --- ExsltTest tests\test.xml tests\availability.xslt FunctionsAvailability.html --- NEW FILE: ExsltTest.cs --- using System; using Mvp.Xml.Exslt; using System.Xml; using System.Xml.XPath; using System.IO; namespace ExsltTest { /// <summary> /// Primitive command-line EXSLT-aware utility. /// </summary> public class ExsltTest { public static void Main(string[] args) { if (args.Length != 3) { PrintUsage(); return; } try { XPathDocument doc = new XPathDocument(args[0]); ExsltTransform xslt = new ExsltTransform(); xslt.Load(args[1]); xslt.MultiOutput = false; using (FileStream fs = File.Create(args[2])) { xslt.Transform(doc, null, fs); } } catch (Exception e) { Console.Error.WriteLine("An exception occured: "); Console.Error.WriteLine(e); } } private static void PrintUsage() { Console.WriteLine("ExsltTest usage:"); Console.WriteLine("ExsltTest.exe source stylesheet result"); } } } --- NEW FILE: ExsltMathTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for EXSLT Math module functions. /// </summary> [TestFixture] public class ExsltMathTests : ExsltUnitTests { protected override string TestDir { get { return "tests/EXSLT/Math/"; } } protected override string ResultsDir { get { return "results/EXSLT/Math/"; } } /// <summary> /// Tests the following function: /// math:min() /// </summary> [Test] public void MinTest() { RunAndCompare("source.xml", "min.xslt", "min.xml"); } /// <summary> /// Tests the following function: /// math:max() /// </summary> [Test] public void MaxTest() { RunAndCompare("source.xml", "max.xslt", "max.xml"); } /// <summary> /// Tests the following function: /// math:highest() /// </summary> [Test] public void HighestTest() { RunAndCompare("source.xml", "highest.xslt", "highest.xml"); } /// <summary> /// Tests the following function: /// math:lowest() /// </summary> [Test] public void LowestTest() { RunAndCompare("source.xml", "lowest.xslt", "lowest.xml"); } /// <summary> /// Tests the following function: /// math:abs() /// </summary> [Test] public void AbsTest() { RunAndCompare("source.xml", "abs.xslt", "abs.xml"); } /// <summary> /// Tests the following function: /// math:sqrt() /// </summary> [Test] public void SqrtTest() { RunAndCompare("source.xml", "sqrt.xslt", "sqrt.xml"); } /// <summary> /// Tests the following function: /// math:power() /// </summary> [Test] public void PowerTest() { RunAndCompare("source.xml", "power.xslt", "power.xml"); } /// <summary> /// Tests the following function: /// math:constant() /// </summary> [Test] public void ConstantTest() { RunAndCompare("source.xml", "constant.xslt", "constant.xml"); } /// <summary> /// Tests the following function: /// math:log() /// </summary> [Test] public void LogTest() { RunAndCompare("source.xml", "log.xslt", "log.xml"); } /// <summary> /// Tests the following function: /// math:random() /// </summary> [Test] public void RandomTest() { RunAndCompare("source.xml", "random.xslt", "random.xml"); } /// <summary> /// Tests the following function: /// math:sin() /// </summary> [Test] public void SinTest() { RunAndCompare("source.xml", "sin.xslt", "sin.xml"); } /// <summary> /// Tests the following function: /// math:cos() /// </summary> [Test] public void CosTest() { RunAndCompare("source.xml", "cos.xslt", "cos.xml"); } /// <summary> /// Tests the following function: /// math:tan() /// </summary> [Test] public void TanTest() { RunAndCompare("source.xml", "tan.xslt", "tan.xml"); } /// <summary> /// Tests the following function: /// math:asin() /// </summary> [Test] public void AsinTest() { RunAndCompare("source.xml", "asin.xslt", "asin.xml"); } /// <summary> /// Tests the following function: /// math:acos() /// </summary> [Test] public void AcosTest() { RunAndCompare("source.xml", "acos.xslt", "acos.xml"); } /// <summary> /// Tests the following function: /// math:atan() /// </summary> [Test] public void AtanTest() { RunAndCompare("source.xml", "atan.xslt", "atan.xml"); } /// <summary> /// Tests the following function: /// math:atan2() /// </summary> [Test] public void Atan2Test() { RunAndCompare("source.xml", "atan2.xslt", "atan2.xml"); } /// <summary> /// Tests the following function: /// math:exp() /// </summary> [Test] public void ExpTest() { RunAndCompare("source.xml", "exp.xslt", "exp.xml"); } } } --- NEW FILE: ExsltUnitTests.cs --- using System; using Mvp.Xml.Exslt; using System.Xml; using System.Xml.XPath; using System.IO; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Superclass for unit tests. /// </summary> public class ExsltUnitTests { protected virtual string TestDir { get { return "tests/EXSLT/Common/"; } } protected virtual string ResultsDir { get { return "results/EXSLT/Common/"; } } protected void RunAndCompare(string source, string stylesheet, string result) { XPathDocument doc = new XPathDocument(TestDir + source); ExsltTransform exslt = new ExsltTransform(); exslt.Load(TestDir + stylesheet); StringWriter res = new StringWriter(); exslt.Transform(doc, null, res); StreamReader sr = new StreamReader(ResultsDir + result); string expectedResult = sr.ReadToEnd(); sr.Close(); if (res.ToString() != expectedResult) { Console.WriteLine("Actual Result was {0}", res.ToString()); Console.WriteLine("Expected Result was {0}", expectedResult); } Assert.IsTrue(res.ToString() == expectedResult); } } } --- NEW FILE: ExsltDatesAndTimesTests.cs --- using System; using NUnit.Framework; namespace ExsltTest { /// <summary> /// Collection of unit tests for EXSLT Dates and Times module functions. /// </summary> [TestFixture] public class ExsltDatesAndTimesTests : ExsltUnitTests { protected override string TestDir { get { return "tests/EXSLT/DatesAndTimes/"; } } protected override string ResultsDir { get { return "results/EXSLT/DatesAndTimes/"; } } /// <summary> /// Tests the following function: /// date:format-date() /// </summary> [Test] public void FormatDateTest() { RunAndCompare("source.xml", "format-date.xslt", "format-date.xml"); } /// <summary> /// Tests the following function: /// date:parse-date() /// </summary> [Test] public void ParseDateTest() { RunAndCompare("source.xml", "parse-date.xslt", "parse-date.xml"); } /// <summary> /// Tests the following function: /// date:date-time() /// </summary> [Test] public void DateTimeTest() { RunAndCompare("source.xml", "date-time.xslt", "date-time.xml"); } /// <summary> /// Tests the following function: /// date:date() /// </summary> [Test] public void DateTest() { RunAndCompare("source.xml", "date.xslt", "date.xml"); } /// <summary> /// Tests the following function: /// date:time() /// </summary> [Test] public void TimeTest() { RunAndCompare("source.xml", "time.xslt", "time.xml"); } /// <summary> /// Tests the following function: /// date:year() /// </summary> [Test] public void YearTest() { RunAndCompare("source.xml", "year.xslt", "year.xml"); } /// <summary> /// Tests the following function: /// date:leap-year() /// </summary> [Test] public void LeapYearTest() { RunAndCompare("source.xml", "leap-year.xslt", "leap-year.xml"); } /// <summary> /// Tests the following function: /// date:month-in-year() /// </summary> [Test] public void MonthInYearTest() { RunAndCompare("source.xml", "month-in-year.xslt", "month-in-year.xml"); } /// <summary> /// Tests the following function: /// date:month-name() /// </summary> [Test] public void MonthNameTest() { RunAndCompare("source.xml", "month-name.xslt", "month-name.xml"); } /// <summary> /// Tests the following function: /// date:month-abbreviation() /// </summary> [Test] public void MonthAbbreviationTest() { RunAndCompare("source.xml", "month-abbreviation.xslt", "month-abbreviation.xml"); } /// <summary> /// Tests the following function: /// date:week-in-year() /// </summary> [Test] public void WeekInYearTest() { RunAndCompare("source.xml", "week-in-year.xslt", "week-in-year.xml"); } /// <summary> /// Tests the following function: /// date:week-in-month() /// </summary> [Test] public void WeekInMonthTest() { RunAndCompare("source.xml", "week-in-month.xslt", "week-in-month.xml"); } /// <summary> /// Tests the following function: /// date:day-in-year() /// </summary> [Test] public void DayInYearTest() { RunAndCompare("source.xml", "day-in-year.xslt", "day-in-year.xml"); } /// <summary> /// Tests the following function: /// date:day-in-month() /// </summary> [Test] public void DayInMonthTest() { RunAndCompare("source.xml", "day-in-month.xslt", "day-in-month.xml"); } /// <summary> /// Tests the following function: /// date:week-of-week-in-month() /// </summary> [Test] public void DayOfWeekInMonthTest() { RunAndCompare("source.xml", "day-of-week-in-month.xslt", "day-of-week-in-month.xml"); } /// <summary> /// Tests the following function: /// date:day-in-week() /// </summary> [Test] public void DayInWeekTest() { RunAndCompare("source.xml", "day-in-week.xslt", "day-in-week.xml"); } /// <summary> /// Tests the following function: /// date:day-name() /// </summary> [Test] public void DayNameTest() { RunAndCompare("source.xml", "day-name.xslt", "day-name.xml"); } /// <summary> /// Tests the following function: /// date:day-abbreviation() /// </summary> [Test] public void DayAbbreviationTest() { RunAndCompare("source.xml", "day-abbreviation.xslt", "day-abbreviation.xml"); } /// <summary> /// Tests the following function: /// date:hour-in-day() /// </summary> [Test] public void HourInDayTest() { RunAndCompare("source.xml", "hour-in-day.xslt", "hour-in-day.xml"); } /// <summary> /// Tests the following function: /// date:minute-in-hour() /// </summary> [Test] public void MinuteInHourTest() { RunAndCompare("source.xml", "minute-in-hour.xslt", "minute-in-hour.xml"); } /// <summary> /// Tests the following function: /// date:second-in-minute() /// </summary> [Test] public void SecondInMinuteTest() { RunAndCompare("source.xml", "second-in-minute.xslt", "second-in-minute.xml"); } /// <summary> /// Tests the following function: /// date:difference() /// </summary> [Test] public void DifferenceTest() { RunAndCompare("source.xml", "difference.xslt", "difference.xml"); } /// <summary> /// Tests the following function: /// date:add() /// </summary> [Test] public void AddTest() { RunAndCompare("source.xml", "add.xslt", "add.xml"); } /// <summary> /// Tests the following function: /// date:add-duration() /// </summary> [Test] public void AddDurationTest() { RunAndCompare("source.xml", "add-duration.xslt", "add-duration.xml"); } /// <summary> /// Tests the following function: /// date:sum() /// </summary> [Test] public void SumTest() { RunAndCompare("source.xml", "sum.xslt", "sum.xml"); } /// <summary> /// Tests the following function: /// date:seconds() /// </summary> [Test] public void SecondsTest() { RunAndCompare("source.xml", "seconds.xslt", "seconds.xml"); } /// <summary> /// Tests the following function: /// date:duration() /// </summary> [Test] public void DurationTest() { RunAndCompare("source.xml", "duration.xslt", "duration.xml"); } } } --- NEW FILE: ExsltTest.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{AC8B9015-E508-4E40-8E6D-C4FCF52CE4B0}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "ExsltTest" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Exe" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "ExsltTest" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "true" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = ".\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = ".\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Data.dll" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.XML.dll" /> <Reference Name = "nunit.framework" AssemblyName = "nunit.framework" HintPath = "..\..\..\Program Files\NUnit 2.2\bin\nunit.framework.dll" AssemblyFolderKey = "hklm\dn\nunit.framework" /> <Reference Name = "Mvp.Xml.Exslt" AssemblyName = "Mvp.Xml.Exslt" HintPath = "..\..\src\Exslt\Mvp.Xml.Exslt.dll" /> </References> </Build> <Files> <Include> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "AvailabilityTest.cmd" BuildAction = "None" /> <File RelPath = "ExsltCommonTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ExsltDatesAndTimesTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ExsltMathTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ExsltRandomTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ExsltRegularExpressionsTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ExsltSetsTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ExsltStringsTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ExsltTest.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ExsltUnitTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "GDNDatesAndTimesTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "GDNDynamicTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "GDNMathTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "GDNRegularExpressionsTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "GDNSetsTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "GDNStringsTests.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "Makefile" BuildAction = "None" /> <File RelPath = "results\EXSLT\Common\node-set.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Common\object-type.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\add.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\add-duration.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\date.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\date-time.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\day-abbreviation.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\day-in-month.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\day-in-week.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\day-in-year.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\day-name.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\day-of-week-in-month.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\difference.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\duration.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\format-date.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\hour-in-day.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\leap-year.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\minute-in-hour.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\month-abbreviation.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\month-in-year.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\month-name.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\parse-date.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\second-in-minute.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\seconds.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\sum.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\time.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\week-in-month.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\week-in-year.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\DatesAndTimes\year.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\abs.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\acos.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\asin.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\atan.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\atan2.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\constant.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\cos.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\exp.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\highest.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\log.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\lowest.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\max.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\min.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\power.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\random.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\sin.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\sqrt.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Math\tan.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Random\random-sequence.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\RegularExpressions\match.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\RegularExpressions\replace.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\RegularExpressions\test.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Sets\difference.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Sets\distinct.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Sets\has-same-node.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Sets\intersection.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Sets\leading.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Sets\trailing.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Strings\align.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Strings\concat.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Strings\decode-uri.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Strings\encode-uri.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Strings\padding.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Strings\replace.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Strings\split.xml" BuildAction = "Content" /> <File RelPath = "results\EXSLT\Strings\tokenize.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\DatesAndTimes\avg.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\DatesAndTimes\day-abbreviation.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\DatesAndTimes\day-name.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\DatesAndTimes\max.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\DatesAndTimes\min.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\DatesAndTimes\month-abbreviation.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\DatesAndTimes\month-name.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\Dynamic\evaluate.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\Math\avg.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\RegularExpressions\tokenize.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\Sets\subset.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\Strings\lowercase.xml" BuildAction = "Content" /> <File RelPath = "results\GotDotNet\Strings\uppercase.xml" BuildAction = "Content" /> <File RelPath = "tests\availability.xslt" BuildAction = "Content" /> <File RelPath = "tests\invoice.xml" BuildAction = "Content" /> <File RelPath = "tests\invoice-processor.xsl" BuildAction = "Content" /> <File RelPath = "tests\regexp-match-test.xslt" BuildAction = "Content" /> <File RelPath = "tests\test.xml" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\Common\node-set.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\Common\object-type.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\Common\source.xml" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\add.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\add-duration.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\date.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\date-time.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\day-abbreviation.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\day-in-month.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\day-in-week.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\day-in-year.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\day-name.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\day-of-week-in-month.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\difference.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\duration.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\format-date.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\hour-in-day.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\leap-year.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\minute-in-hour.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\month-abbreviation.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\month-in-year.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\month-name.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\parse-date.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\second-in-minute.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\seconds.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\source.xml" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\sum.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\time.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\week-in-month.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\week-in-year.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\DatesAndTimes\year.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\Math\abs.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\Math\acos.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\Math\asin.xslt" BuildAction = "Content" /> <File RelPath = "tests\EXSLT\Math\atan.xslt" BuildAction = "Content" /> ... [truncated message content] |