I think so because this compiles fine.... _archiveProceesedLogs.Stub(Function(x) x._xmlRetriever.GetXElementFromFile(_fileListOneFile(0).FullName)).Return(TestFixtureHelper.GetXElementFromString())
Only difference seems to be the Function vs. the Sub. On Feb 16, 1:55 am, Jonathon Rossi <[email protected]> wrote: > Are you sure your NAnt build is configured to correctly run a VB compiler > version that supports lambdas? > > > > > > > > > > On Wed, Feb 16, 2011 at 10:43 AM, dcinadr <[email protected]> wrote: > > I am trying to create a unit test using the AAA syntax. It compiles > > fine in the IDE but it fails when Nant builds it on our build machine. > > > Here is the code where it fails: > > > _logger.Stub(Sub(x) x.Error("Failure loading xml file. " & > > fileList(0).FullName & " will not be processed")) > > _archiveProceesedLogs.Stub(Sub(x) x.HandleProcessedFile(fileList(0), > > _processedlogslocation)) > > > The error that I get is: > > > error BC30201: Expression expected. > > > ... for both of the lines of code above. > > > How else can I write this code so that it works in Nant? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Rhino.Mocks" group.> To post to this group, send email > > [email protected]. > > To unsubscribe from this group, send email > > to>[email protected]. > > For more options, visit this group at > >http://groups.google.com/group/rhinomocks?hl=en. > > -- > Jono -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
