public void Copy_MustFailWhenChildrenistNull() { // Arrange var testClassParentOriginal = new ParentTestClass(); testClassParentOriginal.MakeChildrenCollectionNull(); var testClassParentCopy = new ParentTestClass(); // Act / Assert throws Assert.Throws <ArgumentNullException>(() => this.testCandidate.Copy( testClassParentOriginal, testClassParentCopy, new List <IBaseAdditionalProcessing>())); }
public void Copy_MustFailWhenChildrenistNull() { // Arrange var testClassParentOriginal = new ParentTestClass(); testClassParentOriginal.MakeChildrenCollectionNull(); var testClassParentCopy = new ParentTestClass(); // Act / Assert throws // This exception is not originating from XUnit per se, // but from the assertion library which is itself using // Xunit internally. Assert.Throws <ArgumentNullException>(() => this.testCandidate.Copy( testClassParentOriginal, testClassParentCopy, new List <IBaseAdditionalProcessing>())); }