Determines which language to use to generate an assembly info file
コード例 #1
0
 public void EnsureVisualBasicLanguageBuildsProperly()
 {
     var mock = MockRepository.GenerateStub<IActionExcecutor>();
     var subject = new AssemblyInfoLanguage(mock);
     Action<IAssemblyInfoDetails> action = x => x.OutputPath("c:\test.cs");
     subject.VisualBasic(action);
     mock.AssertWasCalled(x => x.Execute(Arg<Action<AssemblyInfoDetails>>.Is.Equal(action), Arg<VisualBasicAssemblyInfoBuilder>.Is.Anything));
 }
コード例 #2
0
        public void EnsureVisualBasicLanguageBuildsProperly()
        {
            var mock    = MockRepository.GenerateStub <IActionExcecutor>();
            var subject = new AssemblyInfoLanguage(mock);
            Action <IAssemblyInfoDetails> action = x => x.OutputPath("c:\test.cs");

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