Permalink
Browse files

Fix broken build because of failing test

  • Loading branch information...
1 parent 9287071 commit 0b6ed9880341f186a58344d94a8d9cfeb3508f4d @avanderhoorn avanderhoorn committed Apr 9, 2013
Showing with 17 additions and 2 deletions.
  1. +17 −2 source/Glimpse.Test.Core/Resource/ConfigurationShould.cs
@@ -1,6 +1,8 @@
using System;
using Glimpse.Core.Extensibility;
+using Glimpse.Core.Framework;
using Glimpse.Core.Resource;
+using Glimpse.Core.ResourceResult;
using Moq;
using Xunit;
@@ -27,13 +29,26 @@ public void ReturnNoParameterKeys()
}
[Fact]
+ public void NotSupportNonPrivilegedExecution()
+ {
+ var resource = new PopupResource();
+ var contextMock = new Mock<IResourceContext>();
+
+ Assert.Throws<NotSupportedException>(() => resource.Execute(contextMock.Object));
+ }
+
+ [Fact(Skip = "Need to build out correct test here")]
public void Execute()
{
var contextMock = new Mock<IResourceContext>();
+ var configMock = new Mock<IGlimpseConfiguration>();
var resource = new ConfigurationResource();
-
- Assert.NotNull(resource.Execute(contextMock.Object));
+
+ var result = resource.Execute(contextMock.Object, configMock.Object);
+ var htmlResourceResult = result as HtmlResourceResult;
+
+ Assert.NotNull(result);
}
}
}

0 comments on commit 0b6ed98

Please sign in to comment.