public void SutIsException() { // Fixture setup // Exercise system var sut = new ProxyCreationException(); // Verify outcome Assert.IsAssignableFrom<Exception>(sut); // Teardown }
public void SutIsException() { // Fixture setup // Exercise system var sut = new ProxyCreationException(); // Verify outcome Assert.IsAssignableFrom <Exception>(sut); // Teardown }
public void InitializedWithDefaultConstructorHasMessage() { // Fixture setup var sut = new ProxyCreationException(); // Exercise system var result = sut.Message; // Verify outcome Assert.False(string.IsNullOrEmpty(result)); // Teardown }
public void InitializedWithMessageHasCorrectMessage() { // Fixture setup var expectedMessage = Guid.NewGuid().ToString(); var sut = new ProxyCreationException(expectedMessage); // Exercise system var result = sut.Message; // Verify outcome Assert.Equal(expectedMessage, result); // Teardown }
public void InitializedWithMessageAndInnerExceptionHasInnerException() { // Fixture setup var dummyMessage = "Anonymous text"; var expectedException = new Exception(); var sut = new ProxyCreationException(dummyMessage, expectedException); // Exercise system var result = sut.InnerException; // Verify outcome Assert.Equal(expectedException, result); // Teardown }