BootstrapAdmin/Bootstrap.DataAccessTests/ExceptionHelperTests.cs

20 lines
537 B
C#
Raw Normal View History

2016-11-10 16:39:07 +08:00
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Specialized;
namespace Bootstrap.DataAccess.Tests
{
[TestClass()]
public class ExceptionHelperTests
{
[TestMethod()]
public void LogTest()
{
var ex = new Exception("Just for Test");
var nv = new NameValueCollection();
nv.Add("ErrorPage", "UnitTest_Page");
nv.Add("UserIp", "::1");
ExceptionHelper.Log(ex, nv);
}
}
}