Exemple #1
0
        public void set_to_development_mode()
        {
            FubuMode.SetUpForDevelopmentMode();

            FubuMode.InDevelopment().ShouldBeTrue();
        }
Exemple #2
0
        public void in_testing_mode_is_false_if_no_property_exists()
        {
            PackageRegistry.Properties.Remove(FubuMode.Testing);

            FubuMode.InTestingMode().ShouldBeFalse();
        }
Exemple #3
0
 public void setup_for_testing_mode()
 {
     PackageRegistry.Properties.Remove(FubuMode.Testing);
     FubuMode.SetupForTestingMode();
     FubuMode.InTestingMode().ShouldBeTrue();
 }
Exemple #4
0
        public void in_testing_mode_is_false()
        {
            PackageRegistry.Properties[FubuMode.Testing] = false.ToString();

            FubuMode.InTestingMode().ShouldBeFalse();
        }
Exemple #5
0
 public void SetUp()
 {
     FubuMode.Reset();
 }
 public asset_writing_in_development()
 {
     FubuMode.SetUpForDevelopmentMode();
     File("Foo.js").WriteLine("var x = 0;");
 }
Exemple #7
0
        public void in_testing_mode_if_package_registry_is_set()
        {
            PackageRegistry.Properties[FubuMode.Testing] = true.ToString();

            FubuMode.InTestingMode().ShouldBeTrue();
        }
 public void TearDown()
 {
     FubuMode.Reset();
 }
 public CoreServiceRegistry_specification()
 {
     FubuMode.Reset();
     _serviceGraph = BehaviorGraph.BuildEmptyGraph().Services;
 }
        protected override void afterRunning()
        {
            new FileSystem().DeleteFile(_file);

            FubuMode.Reset();
        }
Exemple #11
0
 public void TearDown()
 {
     FubuMode.Reset();
     server.SafeDispose();
 }
Exemple #12
0
        public void SetUp()
        {
            FubuMode.Mode(FubuMode.Development);

            server = FubuApplication.DefaultPolicies().StructureMap().RunEmbedded(port: PortFinder.FindPort(5500));
        }
 public void precompile_views_not_in_development_mode()
 {
     FubuMode.Mode("Production");
     ClassUnderTest.PrecompileViews.ShouldBeTrue();
 }
 public void do_not_precompile_when_in_development_mode()
 {
     FubuMode.Mode(FubuMode.Development);
     ClassUnderTest.PrecompileViews.ShouldBeFalse();
 }