Permalink
Browse files

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

…or SecurityConfiguration.
  • Loading branch information...
1 parent a1097dd commit fff0bb4277a8a855780fefe87fa55686731c6fd0 Kristoffer Ahl committed Oct 22, 2012
@@ -215,11 +215,6 @@
</None>
<None Include="packages.config" />
</ItemGroup>
- <ItemGroup>
- <Content Include="TestData\DiagnosticsOutputExample.txt">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
@@ -72,9 +72,17 @@ public class When_I_check_what_I_have
[Test]
public void Should_return_the_current_configuration()
{
- var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
- var fullFilePath = Path.Combine(baseDirectory, "TestData", "DiagnosticsOutputExample.txt");
- var expectedOutput = File.ReadAllText(fullFilePath);
+ const string expectedOutput = @"Ignore missing configuration: True
+
+------------------------------------------------------------------------------------
+
+FluentSecurity.Specification.TestData.BlogController > DeletePost
+ FluentSecurity.Policy.RequireRolePolicy (Owner or Publisher)
+
+FluentSecurity.Specification.TestData.BlogController > Index
+ FluentSecurity.Policy.DenyAnonymousAccessPolicy
+
+------------------------------------------------------------------------------------";
var securityConfiguration = new SecurityConfiguration(configuration =>
{
@@ -1,11 +0,0 @@
-Ignore missing configuration: True
-
-------------------------------------------------------------------------------------
-
-FluentSecurity.Specification.TestData.BlogController > DeletePost
- FluentSecurity.Policy.RequireRolePolicy (Owner or Publisher)
-
-FluentSecurity.Specification.TestData.BlogController > Index
- FluentSecurity.Policy.DenyAnonymousAccessPolicy
-
-------------------------------------------------------------------------------------

0 comments on commit fff0bb4

Please sign in to comment.