예제 #1
0
        public void GetSourceDirectory_TestNormalSuccess()
        {
            Options options          = new Options();
            string  bootstrapProject = @"c:\test\bootstrap\";
            string  expected         = @"c:\test\bootstrap\assets";

            options.BootstrapProjectPath = bootstrapProject;
            string actual = CommonSupport.GetSourceDirectory(options);

            if (string.IsNullOrEmpty(actual))
            {
                Assert.IsTrue(false);
            }
            else
            {
                Assert.AreEqual(expected, actual);
            }
        }
예제 #2
0
        public void GetSourceDirectory_TestOverideSuccess()
        {
            Options options          = new Options();
            string  bootstrapProject = @"c:\test\override\";
            string  expected         = @"c:\test\override\assets";

            options.AllowHtmlEditing      = true;
            options.BootStrapOverrideHtml = bootstrapProject;
            string actual = CommonSupport.GetSourceDirectory(options);

            if (string.IsNullOrEmpty(actual))
            {
                Assert.IsTrue(false);
            }
            else
            {
                Assert.AreEqual(expected, actual);
            }
        }