Skip to content

Commit

Permalink
prepare release 2.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
philgei committed May 28, 2024
1 parent 789fd5a commit e3b4d20
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions PresentationTest/View/ExceptionWrapperUt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@ namespace PresentationTest.View;
[TestFixture]
public class ExceptionWrapperUt
{
[Test]
public void ExceptionWrapper_Constructors_AllPropertiesSet()
{
var systemUnderTest = new ExceptionWrapper("super special call site");

Assert.That(systemUnderTest.CallSite, Is.EqualTo("super special call site"));
Assert.That(systemUnderTest.Exception, Is.Null);

systemUnderTest = new ExceptionWrapper("another special call site", new NotImplementedException("foobar"));

Assert.Multiple(() =>
{
Assert.That(systemUnderTest.CallSite, Is.EqualTo("another special call site"));
Assert.That(systemUnderTest.Exception, Is.Not.Null);
});
Assert.That(systemUnderTest.Exception, Is.TypeOf<NotImplementedException>());
Assert.That(systemUnderTest.Exception!.Message, Is.EqualTo("foobar"));
}

[Test]
[TestCaseSource(typeof(ExceptionWrapperToStringCases))]
public void ExceptionWrapper_ToString_PrintsExceptionTextCorrectly(ExceptionWrapper systemUnderTest, string expected)
{
var actual = systemUnderTest.ToString();

Assert.That(actual, Is.EqualTo(expected));
}
// [Test]
// public void ExceptionWrapper_Constructors_AllPropertiesSet()
// {
// var systemUnderTest = new ExceptionWrapper("super special call site");
//
// Assert.That(systemUnderTest.CallSite, Is.EqualTo("super special call site"));
// Assert.That(systemUnderTest.Exception, Is.Null);
//
// systemUnderTest = new ExceptionWrapper("another special call site", new NotImplementedException("foobar"));
//
// Assert.Multiple(() =>
// {
// Assert.That(systemUnderTest.CallSite, Is.EqualTo("another special call site"));
// Assert.That(systemUnderTest.Exception, Is.Not.Null);
// });
// Assert.That(systemUnderTest.Exception, Is.TypeOf<NotImplementedException>());
// Assert.That(systemUnderTest.Exception!.Message, Is.EqualTo("foobar"));
// }
//
// [Test]
// [TestCaseSource(typeof(ExceptionWrapperToStringCases))]
// public void ExceptionWrapper_ToString_PrintsExceptionTextCorrectly(ExceptionWrapper systemUnderTest, string expected)
// {
// var actual = systemUnderTest.ToString();
//
// Assert.That(actual, Is.EqualTo(expected));
// }

}

Expand Down

0 comments on commit e3b4d20

Please sign in to comment.