Open ewilde opened 9 years ago
In keeping with being opinionated:
I think it's nice to have tests that make sure the structure of code is adhered to:
i.e. (but do this in xbehave)
[Test] public void debug_configurations_should_have_debug_type_pdb_only() { Convention.Is(new ConfigurationHasSpecificValue(ConfigurationType.Debug, "DebugType", "full"), new ProjectPropertyGroups(typeof(DomainClass).Assembly, projectProvider, projectLocator)); } [Test] public void debug_configurations_should_have_optimize_false() { Convention.Is(new ConfigurationHasSpecificValue(ConfigurationType.Debug, "Optimize", "false"), new ProjectPropertyGroups(typeof(DomainClass).Assembly, projectProvider, projectLocator)); } [Test] public void release_configurations_should_have_debug_type_pdb_only() { Convention.Is(new ConfigurationHasSpecificValue(ConfigurationType.Release, "DebugType", "pdbonly"), new ProjectPropertyGroups(typeof(DomainClass).Assembly, projectProvider, projectLocator)); } [Test] public void release_configurations_should_have_optimize_true() { Convention.Is(new ConfigurationHasSpecificValue(ConfigurationType.Release, "Optimize", "true"), new ProjectPropertyGroups(typeof(DomainClass).Assembly, projectProvider, projectLocator)); }
In keeping with being opinionated:
I think it's nice to have tests that make sure the structure of code is adhered to:
i.e. (but do this in xbehave)