예제 #1
0
        public void Execute()
        {
            var contextMock = new Mock<IResourceContext>();

            var resource = new ConfigurationResource();

            Assert.NotNull(resource.Execute(contextMock.Object));
        }
예제 #2
0
        public void ReturnProperName()
        {
            var name = "glimpse_config";

            var resource = new ConfigurationResource();

            Assert.Equal(name, ConfigurationResource.InternalName);
            Assert.Equal(name, resource.Name);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void ReturnNoParameterKeys()
 {
     var resource = new ConfigurationResource();
     Assert.Empty(resource.Parameters);
 }