Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock.Tests/Dynamic/Generate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23091/DotNetMock.Tests/Dynamic/Generate
Modified Files:
ClassGeneratorTests.cs
Log Message:
- Added test for persistent assemblies
Index: ClassGeneratorTests.cs
===================================================================
RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock.Tests/Dynamic/Generate/ClassGeneratorTests.cs,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** ClassGeneratorTests.cs 5 Jan 2005 04:25:39 -0000 1.14
--- ClassGeneratorTests.cs 5 Jan 2005 14:10:33 -0000 1.15
***************
*** 1,3 ****
--- 1,4 ----
using System;
+ using System.IO;
using NUnit.Framework;
using DotNetMock.Dynamic;
***************
*** 114,118 ****
public void GeneratePersistentAssembly()
{
!
}
[Test] public void TestInParameters()
--- 115,131 ----
public void GeneratePersistentAssembly()
{
! if ( File.Exists( "test.dll" ) )
! {
! File.Delete( "test.dll" );
! }
! cg = new ClassGenerator("test.dll");
! DirectionalMockedCallHandler dmch =
! new DirectionalMockedCallHandler();
! cg.Generate(typeof(IDirectionalParameters), dmch);
! Assert.IsTrue( File.Exists( "test.dll" ) );
! if ( File.Exists( "test.dll" ) )
! {
! File.Delete( "test.dll" );
! }
}
[Test] public void TestInParameters()
|