CSharp() public method

Generate using C#
public CSharp ( Action args ) : void
args Action
return void
 public void EnsureCSharpLanguageBuildsProperly()
 {
     var mock = MockRepository.GenerateStub<IActionExcecutor>();
     var subject = new AssemblyInfoLanguage(mock);
     Action<IAssemblyInfoDetails> action = x=>x.OutputPath("c:\test.cs");
     subject.CSharp(action);
     mock.AssertWasCalled(x => x.Execute(Arg<Action<AssemblyInfoDetails>>.Is.Equal(action), Arg<CSharpAssemblyInfoBuilder>.Is.Anything));
 }
        public void EnsureCSharpLanguageBuildsProperly()
        {
            var mock    = MockRepository.GenerateStub <IActionExcecutor>();
            var subject = new AssemblyInfoLanguage(mock);
            Action <IAssemblyInfoDetails> action = x => x.OutputPath("c:\test.cs");

            subject.CSharp(action);
            mock.AssertWasCalled(x => x.Execute(Arg <Action <AssemblyInfoDetails> > .Is.Equal(action), Arg <CSharpAssemblyInfoBuilder> .Is.Anything));
        }