public void Execute() { var contextMock = new Mock<IResourceContext>(); var resource = new ConfigurationResource(); Assert.NotNull(resource.Execute(contextMock.Object)); }
public void ReturnProperName() { var name = "glimpse_config"; var resource = new ConfigurationResource(); Assert.Equal(name, ConfigurationResource.InternalName); Assert.Equal(name, resource.Name); }
public void Execute() { var contextMock = new Mock<IResourceContext>(); var configMock = new Mock<IGlimpseConfiguration>(); var resource = new ConfigurationResource(); var result = resource.Execute(contextMock.Object, configMock.Object); var htmlResourceResult = result as HtmlResourceResult; Assert.NotNull(result); }
public void ReturnNoParameterKeys() { var resource = new ConfigurationResource(); Assert.Empty(resource.Parameters); }