Exemplo n.º 1
0
        public void set_to_development_mode()
        {
            FubuMode.SetUpForDevelopmentMode();

            FubuMode.InDevelopment().ShouldBeTrue();
        }
Exemplo n.º 2
0
        public void in_testing_mode_is_false_if_no_property_exists()
        {
            PackageRegistry.Properties.Remove(FubuMode.Testing);

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

            FubuMode.InTestingMode().ShouldBeFalse();
        }
Exemplo n.º 5
0
 public void SetUp()
 {
     FubuMode.Reset();
 }
Exemplo n.º 6
0
 public asset_writing_in_development()
 {
     FubuMode.SetUpForDevelopmentMode();
     File("Foo.js").WriteLine("var x = 0;");
 }
Exemplo n.º 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();
        }
Exemplo n.º 11
0
 public void TearDown()
 {
     FubuMode.Reset();
     server.SafeDispose();
 }
Exemplo n.º 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();
 }