Exemplo n.º 1
0
        public void TestExecutionSetsVersionInfoPathForVisualBasic()
        {
            // setup
            string expected = codeInfoUtils.GetCodeVersionFile(CodeLanguage.VisualBasic);

            task.Language = codeInfoUtils.GetCodeLanguage(CodeLanguage.VisualBasic);

            // execute
            task.Execute();

            // assert
            Assert.AreEqual(expected, task.VersionInfoPath);
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     codeInfoUtils = new CodeInfoUtils();
     task          = new Versioning
     {
         ProjectDir  = string.Empty,
         Language    = codeInfoUtils.GetCodeLanguage(CodeLanguage.CSharp),
         VersionPart = "1"
     };
 }
Exemplo n.º 3
0
 public void SetUp()
 {
     fileTestHelper = new FileTestHelper();
     codeInfoUtils  = new CodeInfoUtils();
     task           = new NuspecGenerator
     {
         PackageDir    = string.Empty,
         ProjectDir    = ProjectDir,
         OutputPath    = Path.GetFullPath(Assembly),
         Language      = codeInfoUtils.GetCodeLanguage(CodeLanguage.CSharp),
         Configuration = Configuration
     };
 }
Exemplo n.º 4
0
        public void TestExecutionGeneratesNuspecFileForTSql()
        {
            // setup
            task.Language = codeInfoUtils.GetCodeLanguage(CodeLanguage.TSql);

            // execute
            bool result = task.Execute();

            // assert
            Assert.IsTrue(result);
            Assert.IsTrue(fileTestHelper.FileExists(task.NuspecFile));
        }