From: <bo...@us...> - 2010-06-21 09:03:06
|
Revision: 403 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=403&view=rev Author: bodewig Date: 2010-06-21 09:02:59 +0000 (Mon, 21 Jun 2010) Log Message: ----------- allow tests to access internal methods, reduce method visibility Modified Paths: -------------- trunk/xmlunit/src/main/net-core/diff/DOMDifferenceEngine.cs trunk/xmlunit/xmlunit.nant.build Modified: trunk/xmlunit/src/main/net-core/diff/DOMDifferenceEngine.cs =================================================================== --- trunk/xmlunit/src/main/net-core/diff/DOMDifferenceEngine.cs 2010-06-18 15:21:25 UTC (rev 402) +++ trunk/xmlunit/src/main/net-core/diff/DOMDifferenceEngine.cs 2010-06-21 09:02:59 UTC (rev 403) @@ -66,7 +66,7 @@ /// difference evaluator evaluate the result, notifies all /// listeners and returns the outcome. /// </summary> - public ComparisonResult Compare(Comparison comp) { + internal ComparisonResult Compare(Comparison comp) { object controlValue = comp.ControlNodeDetails.Value; object testValue = comp.TestNodeDetails.Value; bool equal = controlValue == null @@ -78,8 +78,8 @@ return altered; } - public void FireComparisonPerformed(Comparison comp, - ComparisonResult outcome) { + private void FireComparisonPerformed(Comparison comp, + ComparisonResult outcome) { if (ComparisonListener != null) { ComparisonListener(comp, outcome); } Modified: trunk/xmlunit/xmlunit.nant.build =================================================================== --- trunk/xmlunit/xmlunit.nant.build 2010-06-18 15:21:25 UTC (rev 402) +++ trunk/xmlunit/xmlunit.nant.build 2010-06-21 09:02:59 UTC (rev 403) @@ -12,14 +12,18 @@ See the License for the specific language governing permissions and limitations under the License. --> -<project name="xmlunit" description="XmlUnit for .Net" default="compile"> +<project name="xmlunit" description="XMLUnit for .Net" default="compile"> <property name="project.version" value="2.0" overwrite="false"/> + <property name="project.version4" value="${project.version}.0.0" + overwrite="false"/> <property name="base.dir" value="${project::get-base-directory()}" overwrite="false"/> <property name="core.src.dir" value="${base.dir}/src/main/net-core" overwrite="false"/> <property name="core.tests.src.dir" value="${base.dir}/src/tests/net-core" overwrite="false"/> + <property name="gen.src.dir" value="${base.dir}/build/generated/net" + overwrite="false"/> <property name="build.dir" value="${base.dir}/build/net" overwrite="false"/> <property name="bin.dir" value="${build.dir}/bin" overwrite="false"/> @@ -34,6 +38,7 @@ value="lib" /> <target name="init" description="prepare for other targets"> + <mkdir dir="${gen.src.dir}"/> <mkdir dir="${bin.dir}"/> <copy file="${nunit.v2.bin.dir}/${nunit.v2.assembly}" tofile="${bin.dir}/${nunit.v2.assembly}"/> @@ -45,9 +50,32 @@ <target name="compile-core" description="compile core source files" depends="init"> + <asminfo output="${gen.src.dir}/AssemblyInfo.cs" language="CSharp"> + <imports> + <import namespace="System" /> + <import namespace="System.Reflection" /> + <import namespace="System.Runtime.InteropServices" /> + <import namespace="System.Runtime.CompilerServices" /> + </imports> + <attributes> + <attribute type="ComVisibleAttribute" value="false"/> + <attribute type="CLSCompliantAttribute" value="true"/> + <attribute type="AssemblyVersionAttribute" value="${project.version4}"/> + <attribute type="AssemblyTitleAttribute" value="XMLUnit Core" /> + <attribute type="AssemblyDescriptionAttribute" + value="Core Classes of XMLUnit for .NET" /> + <attribute type="InternalsVisibleToAttribute" + value="${project::get-name()}-core.tests"/> + </attributes> + </asminfo> + <copy todir="${gen.src.dir}"> + <fileset basedir="${core.src.dir}"> + <include name="**/*.cs"/> + </fileset> + </copy> <csc target="library" output="${bin.dir}/${project::get-name()}-core.dll" debug="true" verbose="${csc.verbose}"> - <sources basedir="${core.src.dir}"> + <sources basedir="${gen.src.dir}"> <include name="**/*.cs"/> </sources> </csc> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |