Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…or SecurityConfiguration.
  • Loading branch information...
commit fff0bb4277a8a855780fefe87fa55686731c6fd0 1 parent a1097dd
Kristoffer Ahl authored
View
5 FluentSecurity.Specification/FluentSecurity.Specification.csproj
@@ -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.
View
14 FluentSecurity.Specification/SecurityConfigurationSpec.cs
@@ -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 =>
{
View
11 FluentSecurity.Specification/TestData/DiagnosticsOutputExample.txt
@@ -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
-
-------------------------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.