Skip to content
This repository
Browse code

- Removed DiagnosticsOutputExample.txt and included content in spec f…

…or SecurityConfiguration.
  • Loading branch information...
commit fff0bb4277a8a855780fefe87fa55686731c6fd0 1 parent a1097dd
authored October 22, 2012
5  FluentSecurity.Specification/FluentSecurity.Specification.csproj
@@ -215,11 +215,6 @@
215 215
     </None>
216 216
     <None Include="packages.config" />
217 217
   </ItemGroup>
218  
-  <ItemGroup>
219  
-    <Content Include="TestData\DiagnosticsOutputExample.txt">
220  
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
221  
-    </Content>
222  
-  </ItemGroup>
223 218
   <ItemGroup />
224 219
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
225 220
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
14  FluentSecurity.Specification/SecurityConfigurationSpec.cs
@@ -72,9 +72,17 @@ public class When_I_check_what_I_have
72 72
 		[Test]
73 73
 		public void Should_return_the_current_configuration()
74 74
 		{
75  
-			var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
76  
-			var fullFilePath = Path.Combine(baseDirectory, "TestData", "DiagnosticsOutputExample.txt");
77  
-			var expectedOutput = File.ReadAllText(fullFilePath);
  75
+			const string expectedOutput = @"Ignore missing configuration: True
  76
+
  77
+------------------------------------------------------------------------------------
  78
+
  79
+FluentSecurity.Specification.TestData.BlogController > DeletePost
  80
+	FluentSecurity.Policy.RequireRolePolicy (Owner or Publisher)
  81
+
  82
+FluentSecurity.Specification.TestData.BlogController > Index
  83
+	FluentSecurity.Policy.DenyAnonymousAccessPolicy
  84
+
  85
+------------------------------------------------------------------------------------";
78 86
 
79 87
 			var securityConfiguration = new SecurityConfiguration(configuration =>
80 88
 			{
11  FluentSecurity.Specification/TestData/DiagnosticsOutputExample.txt
... ...
@@ -1,11 +0,0 @@
1  
-Ignore missing configuration: True
2  
-
3  
-------------------------------------------------------------------------------------
4  
-
5  
-FluentSecurity.Specification.TestData.BlogController > DeletePost
6  
-	FluentSecurity.Policy.RequireRolePolicy (Owner or Publisher)
7  
-
8  
-FluentSecurity.Specification.TestData.BlogController > Index
9  
-	FluentSecurity.Policy.DenyAnonymousAccessPolicy
10  
-
11  
-------------------------------------------------------------------------------------

0 notes on commit fff0bb4

Please sign in to comment.
Something went wrong with that request. Please try again.