public void SutIsException()
 {
     // Fixture setup
     var dummyMember = typeof(object).GetMembers().First();
     var dummyValueType = typeof(object);
     // Exercise system
     var sut = new GuardClauseException();
     // Verify outcome
     Assert.IsAssignableFrom<Exception>(sut);
     // Teardown
 }
 public void MessageIsNotNull()
 {
     // Fixture setup
     var dummyMember = typeof(object).GetMembers().First();
     var dummyValueType = typeof(object);
     var sut = new GuardClauseException();
     // Exercise system
     var result = sut.Message;
     // Verify outcome
     Assert.NotNull(result);
     // Teardown
 }
 public void MessageIsCorrectWhenConstructedWithMessage()
 {
     // Fixture setup
     var dummyMember = typeof(object).GetMembers().First();
     var dummyValueType = typeof(object);
     var expectedMessage = Guid.NewGuid().ToString();
     var sut = new GuardClauseException(expectedMessage);
     // Exercise system
     var result = sut.Message;
     // Verify outcome
     Assert.Equal(expectedMessage, result);
     // Teardown
 }
 public void InnerExceptionIsCorrectWhenConstructedWithMessageAndInnerException()
 {
     // Fixture setup
     var dummyMember = typeof(object).GetMembers().First();
     var dummyValueType = typeof(object);
     var dummyMessage = "Anonymous text";
     var expectedInner = new Exception();
     var sut = new GuardClauseException(dummyMessage, expectedInner);
     // Exercise system
     var result = sut.InnerException;
     // Verify outcome
     Assert.Equal(expectedInner, result);
     // Teardown
 }