public void Name_Test() { // Arrange HttpErrorLog log = new HttpErrorLog(new HybridDictionary()); // Assert Assert.Equal("Http Error Log", log.Name); }
public void Log_Test() { // Arrange ExceptionDefaults parameters = new ExceptionDefaults { ApplicationName = "Test-Application", Host = "HttpErrorLogTest", Token = "Test-Token", RemoteLogUri = new Uri("http://www.faulthub.org/") }; TestableHttpExceptionWritter writter = new TestableHttpExceptionWritter(); ExceptionHandler.Configure(writter, parameters, null); HttpErrorLog log = new HttpErrorLog(new HybridDictionary()); // Act string id = log.Log(new Error(new Exception("Test-Error"))); // Assert Assert.True(new Guid(id) != Guid.Empty, id); }