|
using System;
using System.Configuration;
using Nelibur.Sword.Core;
using Xunit;
namespace UnitTests.Nelibur.Sword
{
public sealed class ErrorTests
{
[Fact]
public void ArgumentNull()
{
Assert.IsType<ArgumentNullException>(Error.ArgumentNull(string.Empty));
}
[Fact]
public void ConfigurationError()
{
Assert.IsType<ConfigurationErrorsException>(Error.ConfigurationError(string.Empty));
}
[Fact]
public void ErrorByType()
{
Assert.IsType<NotImplementedException>(Error.Type<NotImplementedException>());
}
[Fact]
public void InvalidOperation()
{
Assert.IsType<InvalidOperationException>(Error.InvalidOperation(string.Empty));
}
[Fact]
public void NotImplemented()
{
Assert.IsType<NotImplementedException>(Error.NotImplemented());
}
[Fact]
public void NotSupported()
{
Assert.IsType<NotSupportedException>(Error.NotSupported());
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
B.Sc. in Computer Science.